Skip to content

Commit

Permalink
Fix flatpickr not registering change in manually entered date/time wh…
Browse files Browse the repository at this point in the history
…en displayed with static option.
  • Loading branch information
Elmervc committed Jun 27, 2022
1 parent 10042da commit b3edc79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/webdsl/dsl/project/template-webdsl/built-in.app
Expand Up @@ -1256,7 +1256,7 @@ template datepickerIncludes(){
// https://github.com/flatpickr/flatpickr/issues/893
// Flatpickr does not update its internals on the alt input field when focus is lost without hitting enter.
// Force sending the enter-key on the flatpickr alt input that loses focus, so it updates its internals
postProcess( "$(node).find('input.flatpickr:not([id])').focusout( function(){ this.dispatchEvent( new KeyboardEvent('keydown',{'keyCode':13}) ); } );" )
postProcess( "$(node).find('input.flatpickr:not([id])').focusout( function(){ this.dispatchEvent( new KeyboardEvent('keydown',{keyCode:13, bubbles: true}) ); } );" )
}
}

Expand Down

0 comments on commit b3edc79

Please sign in to comment.