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.

Firefox SingleDatePicker withPortal not usable

See original GitHub issue

On Firefox the SingleDatePicker with the withPortal option triggers onFocusChange twice, once with { focused: true } and right afterwards { focused: false }. This makes the portal open and close in a matter of half a second, rendering the datepicker unusable.

import { SingleDatePicker } from 'react-dates';

export default ({ date, focused, onFocusChange, onDateChange }) => (
    <SingleDatePicker
      id="date_input"
      withPortal
      date={date}
      focused={focused}
      onDateChange={onDateChange}
      onFocusChange={onFocusChange}
      isOutsideRange={(day) => day.isAfter(moment())}
      displayFormat="DD.MM.YYYY"
    />
);

Reproduced on Firefox Developer Edition 53.0a2 and Firefox 51.0.1.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
majapwcommented, Apr 4, 2017

This should be fixed in v9.0.1!

0reactions
phamcharlescommented, Apr 4, 2017

@majapw thank you for your hard work and the quick turnaround. I really appreciate it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Firefox SingleDatePicker withPortal not usable #340 - GitHub
On Firefox the SingleDatePicker with the withPortal option triggers onFocusChange twice, once with { focused: true } and right afterwards ...
Read more >
Fix login issues on websites that require a username and ...
If you can log in to a website manually, but can't save or use saved usernames and passwords, see Usernames and passwords are...
Read more >
Select does not open dropdown onclick | Firefox supportforum
I am currently using a datepicker from jQuery UI 1.10 with a select dropdown so that the user can choose year. The "yearpicker"...
Read more >
1707541 - Detectportal does not detect login page when login ...
(example network working like this: Starbucks Korea); Firefox will prompt "You need to log in to use this network", click that. Actual results:....
Read more >
Cannot access my hospital's "Patient portal" with FireFox, but ...
I can access it with no problems using Google Chrome. Every time I update FireFox, something else stops working.
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