Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange bug with multiple components #521

Closed
gilbert opened this issue Mar 30, 2015 · 2 comments
Closed

Strange bug with multiple components #521

gilbert opened this issue Mar 30, 2015 · 2 comments

Comments

@gilbert
Copy link
Contributor

gilbert commented Mar 30, 2015

I'm running into a bug within the Mithril internals (latest components branch), and I'm not sure how to fix it. Here's how to reproduce:

  • Open http://jsfiddle.net/gfy0of6y/
  • Click inside the first text field
  • Click an option from the dropdown (or click outside to close the dropdown)
  • Click inside the second text field
  • See js console for error

The bug only happens when you have more than one instance of MSelect on the page. Also, strangely enough, it only happens when you select the first box, and then the second (if you select the second box first, everything works fine).

@lhorie
Copy link
Member

lhorie commented Mar 30, 2015

Appears to be related to #524. I tried the jsfiddle w/ the latest commit and it looks like the error no longer appears:

http://jsfiddle.net/gfy0of6y/1/

@lhorie lhorie closed this as completed Mar 30, 2015
@gilbert
Copy link
Contributor Author

gilbert commented Mar 30, 2015

Thank you! 👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants