Comments (4)
It is a valid method/event name. It should work. This is the first report of it not working. Can you explain where this is failing for you? Browser vendor? Browser version? Example of your code? Thanks.
from react-popover.
No feedback, closing.
from react-popover.
I have the same problem, I'm using Webpack 1.12.13 with React 0.14 (With Babel and ES6 stuff). I use react-popover@^0.4.4
version. (Chromium 48 on Arch Linux)
I didn't try the document.addEventListener
, but window.addEventListener('mousedown')
does not trigger any event for me (tried to break into the handlers, etc...)
I suppose that the event could be swallow by React or something like this.
I could put a minimal repro case by tonight, I think.
EDIT: I confirm that the workaround suggested by @leesiongchan works.
from react-popover.
We are also having the same issue on react-popover@^0.4.4
. Window events are somehow swallowed, while document events keep firing. And the @leesiongchan fix works.
@jasonkuhrt , would you be open to a PR that changes window event handlers to document?
from react-popover.
Related Issues (20)
- Missing key attribute warning since 0.5.7 upgrade HOT 1
- Popover disappears when moving mouse from trigger element to popover body HOT 1
- This is The worst documentation that I ever seen.... HOT 2
- Popover body is not centered over target HOT 5
- Update react-popover on npm HOT 3
- Add className to target's wrapper easy customization
- Missing License HOT 1
- react 16.6: Cannot read property 'nodeName' of null HOT 1
- Popover doesn't change position according to content in IE11
- Babel config in package.json problem
- Change animation
- Feature request: Add position offset HOT 1
- Feature request: Built in debounce
- Warning: componentWillReceiveProps has been renamed
- CSS-Vendor library is breaking jest tests
- calcSize throws error: Cannot read property 'offsetWidth' of null
- Somehow losing focus in the Popover Body when typing into text input
- appendTarget prop with relative parent calculates wrong position HOT 1
- Abandoned? Release? Or any good alternatives?
- Do we have any provision in this component to align the popover at bottom right
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-popover.