[wp-trac] [WordPress Trac] #5629: Tag Addition sends form submit
wehn you press enter
WordPress Trac
wp-trac at lists.automattic.com
Thu Jan 10 21:22:40 GMT 2008
#5629: Tag Addition sends form submit wehn you press enter
----------------------------+-----------------------------------------------
Reporter: mdawaffe | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5
Component: Administration | Version: 2.5
Severity: normal | Keywords: has-patch
----------------------------+-----------------------------------------------
To Reproduce:
1. Type something into the "Add new tag" box.
2. Wait for auto suggest.
3. Don't select any of the suggestions.
4. Hit enter.
5. Watch as post form is submitted with traditional HTTP POST request.
I'm not quite sure what the whole story is here, but it has something to
to with jquery.suggest's event handling. Removing {{{tag_flush_to_text}}}
from suggest's {{{onSelect}}} option, and moving it to a custom event
handler seems to work.
Attached.
--
Ticket URL: <http://trac.wordpress.org/ticket/5629>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list