Comments (1)
This can be observed by performing a slow click. When you hold down the mouse click button for 1 sec and release it, the date popup opens(on mousedown), then disappears(on mouseup). This is because the document.click event triggers just after the popup open and is detected as an outside click and closes the popup.
The solution is to use document.mousedown instead of document.click.
Change
$document.on( 'click.' + STATE.id + ' focusin.' + STATE.id, function( event ) {
with
$document.on( 'mousedown.' + STATE.id + ' focusin.' + STATE.id, function( event ) {
in picker.js
And change .on("click."+
with .on("mousedown."+
in compressed/picker.js
from pickadate.js.
Related Issues (20)
- Rendering on input element v5
- Error when added two calendars on a single page
- BUG formatSubmit generates the invalid name, when used the HTML input's name as array
- Maintainer wanted HOT 4
- Translation
- Infinite loop occurs with `.set('max', -Infinity)`
- Event click error in indexOf property in picker.js file
- Date picker defaults to 2099 since Jan 1, 2022. HOT 1
- `getRealEventTarget` should use `Event.composedPath()` instead of `Event.path`
- iphone don't work
- time piker select 24:00 hour instead of am / pm
- pickatime with classic theme is broken on Chrome 107 HOT 10
- Legacy.js error with Microsoft Edge
- Pickatime does not always handle decimal minimum time
- Hi, I cant seem to make it work on React?
- Time picker activates on repeated onRender HOT 1
- Dynamically disabling dates with data from server as user interacts with calendar: Allow disable {from: -Infinity, to: Infinity} or Prevent cascading changes when set disable when the currently selected item object becomes disabled (for DATES)
- Change language dynamically
- pickadate is using deprecated Jquery functions
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 pickadate.js.