-
-
Notifications
You must be signed in to change notification settings - Fork 372
Description
Do you want to request a feature or report a bug?
A conflict, so more of a bug
What is the current behavior?
When using a browser extension that alters the DOM, like Emoji One, the Preact app might not be rendered to the correct spot, or even twice. For example, Emoji One injects an invisible element as the first child of body after some time. Since the app appears always to be rendered onto the first child, this can lead to problems.
If the current behavior is a bug, please provide the steps to reproduce.
- Install the Emoji Keyboard by Emoji One Chrome extension
- Create a new Preact project
- Serve it (I'm using
servebecause I'm having problems with SimpleHTTPServer) - Add some network throttling (e.g. Slow 3G)
- Do a hard reload (CTRL + Shift + R) and watch the app getting rendered twice
What is the expected behavior?
The Preact app should explicitly be rendered to one specific element, e.g. determined by ID or reference.
(In case the selector isn't the cause of the problem, my ideas wouldn't help)
Please mention other relevant information.
- node version v8.0.0
- Operating system: Windows 10