Skip to content

[Popup,Modal] Inline popup doesn't show on content inside modal #1640

Discussion options

You must be logged in to vote

This is due to the modal being detached from the dom by default, loosing previous attached events.
Workarounds:

  1. Use detachable: false
    https://jsfiddle.net/u3mx7gzj/

  2. Instantiate the popup after the modal is instantiated
    https://jsfiddle.net/u3mx7gzj/2/

Both jsfiddles are based on your example. However the popup won't be shown in any case when a dropdown is actively opened, which is the case in your example because the modal only contains the dropdown field, which gets focussed, thus opened by default.
To avoid this, use autofocus:false to see the popup immediatly
https://jsfiddle.net/u3mx7gzj/3/

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by lubber-de
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants
Converted from issue

This discussion was converted from issue #1640 on October 06, 2020 21:41.