You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if the attribute on the model gives an boolean, then the toggle is not right set.
For example, the attribute gives back a boolean true, then the toggle shows "Off".
The problem is in your JS files, it is the tripple equal that only allowes integer 1 for "On" state. field.value === 1
When trying to make a Toggle Field from a property that returns a php boolean, like this computed property:
this toggle switch doesn't work correctly.
It doesn't show at all on the Index Page, shows the text true on the Detail page and on forms it behaves weirdly.
The text was updated successfully, but these errors were encountered: