-
Notifications
You must be signed in to change notification settings - Fork 436
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
<input>
wrapped in a <label>
doesn't work
#1219
Comments
well, it's something developers should change in their own HTML structure I guess. |
Perhaps it could be at least documented as unsupported. It's not obvious. |
@jjonescz - updated the README and will be visible soon when I deploy a new version |
I know this issue is already closed, but why not change the original input to type="hidden". This makes it hidden and prevents the focus to it and it still is being submitted with the form. It should fix this issue and the extra css to make the original input hidden is not needed. |
@dmx-patrick - |
…the focus it shifted to the hidden original field
Prerequisites
💥 Demo Page
https://jsbin.com/fegocotaju/1/edit?html,js,output
Explanation
What is the expected behavior? I would expect it to work normally, it's just slightly modified basic example. This alternative works fine:
What is happening instead? The tags input cannot be focused, the underlying text box is focused instead. If I type something anyway, the UI breaks:
What error message are you getting? None.
The text was updated successfully, but these errors were encountered: