Currently when we add autocompletition text field to modal dialog on the first dialog show we are not able to see autocomplete widget #2360725: Add simple autocomplete functionality to the entity embed entity selection UI.
This is actually a core issue because dialog-modal element does not tell autocomplete widget where to append exactly.
So on first dialog show with autocomplete field autocomplete widget will be appended to body element and will be positioned in DOM before dialog code and this is the reason we do not see it. On second try with same dialog (close and open) dialog code is already in html (wrapped with jquery ui wrappers which have 'ui-front' class) so autocomplete will append it self correctly.
Adding 'ui-front' class to dialog modal html code will solve this issue.
More info
Comment | File | Size | Author |
---|---|---|---|
#12 | drupal-modal-dialog-ui-front-class-2361383-12.patch | 838 bytes | pivica |
Comments
Comment #1
pivica CreditAttribution: pivica commentedAttaching patch.
Comment #2
BerdirComment #3
Wim Leerss/ui widgets/jQuery UI widgets/
s/appends to dialog/sits on top of dialogs/
Should also explain this is a jQuery UI class, and link to http://api.jqueryui.com/theming/stacking-elements/.
Comment #4
Wim LeersComment #5
pivica CreditAttribution: pivica commentedNew patch based on feedback from #4.
Comment #6
pivica CreditAttribution: pivica commentedRemoved one extra space in comment.
Comment #8
Wim LeersThanks! A few more nitpicks, then this is RTBC:
s/ui-front/'ui-front'/
s/sits/sit/
s/information's/information/
s/check/see/
Comment #10
Wim LeersI wonder why the patch doesn't apply; the affected file hasn't changed since June:
Perhaps the patch was modified manually?
Comment #11
BerdirYep, the patch file is corrupt.
Comment #12
pivica CreditAttribution: pivica commentedOK new patch, added feedback from #8 and patch should not be corrupted now.
Comment #13
Wim LeersGreat, thanks!
Comment #14
alexpottCommitted b99effe and pushed to 8.0.x. Thanks!
Comment #17
s_leu CreditAttribution: s_leu at MD Systems GmbH commentedThis ui-front class isn't added to the dialog once it gets closed and re-opened again. I provided a patch to fix this in #2508830: Various UI problem with autocomplete select control