question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

React-Select component with properties crash Firefox on Windows 10

See original GitHub issue

Affects 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

cc @peixian @tab1293

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:8
  • Comments:15 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
mhubenthalcommented, Feb 15, 2017

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 on aria-owns:

https://www.w3.org/TR/wai-aria/states_and_properties#aria-owns

In Select.js, line 879, when isOpen is false, the component assigns this._instancePrefix + '-value' to aria-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

3reactions
mhubenthalcommented, Feb 15, 2017

PR with a fix is out: #1556

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found