question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dropdowns misbehave when inside Popups

See original GitHub issue

Bug Report

Steps

  1. Place a <Dropdown /> inside a <Popup />, with a <Button /> as trigger
  2. Click the button (pop-up should open)
  3. Click outside the pop-up (it should close itself)
  4. Open the pop-up again
  5. Open the dropdown
  6. Click outside the pop-up

Expected Result

The pop-up should close.

Actual Result

The pop-up stays open. Only the dropdown closes. Clicking again outside will leave the pop-up open. The only way to close it is to click the button again.

Version

0.81.1

Testcase

https://codepen.io/anon/pen/QxvpNe

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:5
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mic4aelcommented, Jul 9, 2018

I think there is a bug which causes the appropriate handlers of the Popup to be overridden by the ones provided by Dropdown if they are not in separate event pools.

0reactions
mic4aelcommented, Jul 9, 2018

@milkers a possible solution to that would be to pass eventPool e.g. set to testing as a property of the Popup. I am still to find if there is more to that (if there is an actual bug).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kivy Popup misbehaviour when called from inside 'on_enter'
The problem is that the on_enter() event is triggered too early, so it the Popup gets drawn before the Main Screen .
Read more >
Dropdown list cut off in popup (Reactive) - OutSystems
The scrollbar of the popup disappears as soon as you click on it, because the dropdown is deprived of focus and it hides...
Read more >
Unexplained Windows or software behavior may be caused ...
This issue may occur when deceptive software, such as spyware that is known as "grayware," is installed on your computer. This kind of...
Read more >
Dropdown (select) is not working on popups? - WordPress.org
I added the Hustle Plugin, and the CSS mentioned above, but the select field still does not dropdown. I did inspect, and the...
Read more >
disable all ads on android
Tap Site settings, then select Pop-ups … ... you will need to disable the default SMS application from within the Android operating system....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found