naifalshaye / toggle-switch-field

4 stars 4 forks source link

Doesn't respect readonly() #6

Closed ekazda closed 2 months ago

ekazda commented 5 months ago

ToggleSwitchField::make('Subscribe') ->readonly()

This code does not work. The toggle switch can still be toggled. I was expecting it to be grayed out in whatever position appropriate based on the incoming data.

naifalshaye commented 2 months ago

Hi @ekazda issue is fixed and button can be disabled by now with disabled cursor and gray color.

Sorry for the delay..