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

Add workaround for the issue with react events inside web components. #62

Merged
merged 1 commit into from Apr 22, 2020

Conversation

aindlq
Copy link
Member

@aindlq aindlq commented Apr 22, 2020

This is ugly hack to workaround issue with event propagation when react root is inside custom web component.
See facebook/react#9242

This issue caused strange behavior of platform components inside semantic-map popovers and Mirador annotation popovers.

Basically even semantic-link was not working properly there and instead of changing the content of the page dynamically it reloaded the whole page.
Or for example it was not possible to use mp-event-trigger in such context.

Signed-off-by: Artem Kozlov artem@rem.sh

…ponents.

This is ugly hack to workaround issue with event propagation when react root is inside custom web component.
See facebook/react#9242

This issue caused strange behaviour of platform components inside semantic-map popovers and Mirador annotation popovers.

Basically even `semantic-link` was not working properly there and instead of changing the content of the page dynamically it reloaded the whole page.
Or for example it was not possible to use `mp-event-trigger` in such context.

Signed-off-by: Artem Kozlov <artem@rem.sh>
@aindlq aindlq merged commit fcf22a6 into master Apr 22, 2020
@aindlq aindlq deleted the bugfix/events-in-webcomponents branch April 22, 2020 15:59
DawsonMacPhee pushed a commit to DawsonMacPhee/researchspace that referenced this pull request Nov 24, 2021
…in-webcomponents

Add workaround for the issue with react events inside web components.
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

Successfully merging this pull request may close these issues.

None yet

1 participant