AuraQ / AutoCompleteForMendix

An autocomplete widget for mendix
Apache License 2.0
8 stars 31 forks source link

Search bar doesn't render properly when placed inside a second modal popup. (Mendix 8.15.0) #62

Closed iwwhite closed 3 years ago

iwwhite commented 3 years ago

Mendix 8.15.0 When the widget is placed inside a nested modal popup, the search bar is not positioned correctly. Instead of just adding the bar to the new modal, the search is also added to the previous modal body. This results in the search bar being misaligned when it is displayed and prevents it from being properly removed once the user clicks off.

image

This is what happens after the modal is closed image

This is what the HTML looks like. As you can see, each time the user clicks on the select field, the search bar is added to both modals. When the user clicks of the widget, only the element inside the top modal is removed. image

EDIT - It turned out this issue was caused by having the "Parent selector" attribute set to .modal-dialog Setting the "Parent Selector" to empty fixed my problem.