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

[Popover] Only prevent default click interactions #7167

Merged
merged 1 commit into from Jun 17, 2017
Merged

[Popover] Only prevent default click interactions #7167

merged 1 commit into from Jun 17, 2017

Conversation

oliviertassinari
Copy link
Member

@oliviertassinari oliviertassinari commented Jun 17, 2017

Revert 8dac626 as I don't think that it's relevant to prevent default here. I would rather see it on specific elements.

Closes #6888
Closes #6891

  • PR has tests / docs demo, and is linted.
  • Commit and PR titles begin with [ComponentName], and are in imperative form: "[Component] Fix leaky abstraction".
  • Description explains the issue / use-case resolved, and auto-closes the related issue(s) (http://tr.im/vFqem).

@oliviertassinari oliviertassinari added bug 🐛 Something doesn't work component: Popover The React component. component: AutoComplete and removed component: Popover The React component. component: AutoComplete labels Jun 17, 2017
Closes #6888

should not call clickAway if useLayerForClickAway is false
@oliviertassinari oliviertassinari merged commit 2ddd5ef into mui:master Jun 17, 2017
@oliviertassinari oliviertassinari deleted the popover-click-away-tap branch June 17, 2017 10:06
@oliviertassinari
Copy link
Member Author

@jony89 Thanks for your help here!

@jony89
Copy link
Contributor

jony89 commented Jun 17, 2017

@oliviertassinari you are most welcome.

just to mention, the event it is being triggered twice, not sure what are the implication. one time with click event (due to ghost) and one time with touchstart origin.

@oliviertassinari
Copy link
Member Author

@jony89 Yeah, but it's not triggered on desktop otherwise. I would rather make Material-UI less opinionated at that level.

@joshunger
Copy link

Thank you for fixing it! This also fixed a similar issue for me where a checkbox couldn't be unchecked. @jony89 @oliviertassinari when will 0.18.4 be released with this fix?

@jony89
Copy link
Contributor

jony89 commented Jun 20, 2017

it is done with SEMVER and every two weeks if I am correct. though you can always build the lib your self (npm run build after npm install)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something doesn't work component: Popover The React component.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants