React-Select component with properties crash Firefox on Windows 10
See original GitHub issueAffects Firefox 51.0.1 on Windows 10 32 and 64 bit
When loading a React-Select component that has properties set causes the browser window to crash.
let props = this.props;
return (
<ReactSelect {...props} noResultsText={ '' }/>
);
This loads fine:
let props = this.props;
return (
<ReactSelect/>
);
Crash report: https://crash-stats.mozilla.com/report/index/20c12273-27b2-4e1c-b49f-874492170131
Issue Analytics
- State:
- Created 7 years ago
- Reactions:8
- Comments:15 (3 by maintainers)
Top Results From Across the Web
React-select library crashing my page on render
I am currently attempting to implement react-select into a web-app I am developing, but whenever it is rendered it crashes the entire react...
Read more >Getting started with React - Learn web development | MDN
A prop is any data passed into a React component. React props are comparable to HTML attributes. Where HTML elements have attributes, React...
Read more >react-select-with-firefox-touch-patch - npm
A Select control built with and for ReactJS, with a patch for Firefox touch-enabled devices. Latest version: 1.0.0, last published: 3 years ...
Read more >React JS - React Tutorial for Beginners - YouTube
React JS Tutorial - Get up & running with React JS: the most popular JavaScript library in the world! - Want to master...
Read more >Changelog - Cypress Documentation
When a chromium based browser tab or process crashes, Cypress will no longer hang ... Cypress 10 now includes beta support for component...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It appears that Firefox is getting stuck in some kind of infinite loop due to incorrect use of
aria-owns
attribute. Here’s the W3C spec onaria-owns
:https://www.w3.org/TR/wai-aria/states_and_properties#aria-owns
In
Select.js
, line 879, whenisOpen
is false, the component assignsthis._instancePrefix + '-value'
toaria-owns
. That value corresponds to a DOM node which is a parent, and thus has a hierarchical relationship, breaking the W3C spec.If you visit the demo in Chrome (https://jedwatson.github.io/react-select/) and inspect the HTML, you’ll see that in the situation when the component would be breaking Firefox, Chrome has intelligently removed the offending
aria-owns
value.cc: @critesjm @pagevest
PR with a fix is out: #1556