Skip to content

Commit

Permalink
fix(input): stop event propagation on input typing
Browse files Browse the repository at this point in the history
block event propagation to avoid calendar opening due to key mapping (enter / space)

fix elreco#110
  • Loading branch information
Julien Georget committed Oct 2, 2023
1 parent 4dc1406 commit f9d5740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VueTailwindDatePicker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -1438,7 +1438,7 @@ provide(setToCustomShortcutKey, setToCustomShortcut)
inputClasses
|| 'pl-3 pr-12 py-2.5 rounded-lg overflow-hidden border-solid text-sm text-vtd-secondary-700 placeholder-vtd-secondary-400 transition-colors bg-white border border-vtd-secondary-300 focus:border-vtd-primary-300 focus:ring focus:ring-vtd-primary-500 focus:ring-opacity-10 focus:outline-none dark:bg-vtd-secondary-800 dark:border-vtd-secondary-700 dark:text-vtd-secondary-100 dark:placeholder-vtd-secondary-500 dark:focus:border-vtd-primary-500 dark:focus:ring-opacity-20',
]" autocomplete="off" data-lpignore="true" data-form-type="other" :placeholder="givenPlaceholder"
@keyup="keyUp"
@keyup.stop="keyUp" @keydown.stop
>
<div class="absolute inset-y-0 right-0 inline-flex items-center rounded-md overflow-hidden">
<button
Expand Down

0 comments on commit f9d5740

Please sign in to comment.