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
I have a form with a hidden field and an contenteditable div. I bound the enter-key to the contenteditable, to put it's text to the hidden filed and submit the form.
Now on selecting an element from the atwho.js dropdown with the enter-key will insert the atwho.js element AND submit the form. Any ideas how to prevent the enter to submit the form, when it was used to select from atwho list?
The text was updated successfully, but these errors were encountered:
This is how i resolved it: http://jsbin.com/gabuwetowu/edit?html,console,output
Its nearly the same as grammka his one, only i use the isSelecting event to check if the user is doing a @ mention. I think i prefer grammka his one, and might change my solution so i can drop my keyuplistener.
Hi there,
I have a form with a hidden field and an contenteditable div. I bound the enter-key to the contenteditable, to put it's text to the hidden filed and submit the form.
Now on selecting an element from the atwho.js dropdown with the enter-key will insert the atwho.js element AND submit the form. Any ideas how to prevent the enter to submit the form, when it was used to select from atwho list?
The text was updated successfully, but these errors were encountered: