Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toggles should probably never have the 'required' attribute #69

Closed
SeaPea opened this issue Apr 9, 2016 · 0 comments
Closed

Toggles should probably never have the 'required' attribute #69

SeaPea opened this issue Apr 9, 2016 · 0 comments

Comments

@SeaPea
Copy link

SeaPea commented Apr 9, 2016

I copied the example code for Toggle elements, which includes the 'required' html attribute, but this doesn't make much sense for a checkbox/toggle and actually behaves differently on iPhone vs Android. iPhone ignores this attribute and works as if the 'required' attribute was not there, but Android treats it as meaning it will only submit the settings if the toggle is 'on' and simply does nothing (not even show a message) if the toggle is 'off' as if the submit button is disabled.

So I would suggest using a different example for the attribute and perhaps not include any html attributes in the example code for Toggles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants