fix date input (#399)

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka 2024-05-06 11:42:21 +01:00 committed by GitHub
parent 4eec9aa02b
commit 6d50bba76b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -13,6 +13,7 @@
class="cursor-pointer overflow-hidden"
:class="inputClasses"
:disabled="props.disabled"
ref="datepicker"
>
<div class="flex items-center min-w-0">
<div
@ -168,8 +169,7 @@ const handleCompValChange = () => {
const setInputColor = () => {
if (datepicker.value) {
const dateInput = datepicker.value.$el.getElementsByTagName('input')[0]
dateInput.style.setProperty('--tw-ring-color', props.color)
datepicker.value.style.setProperty('--tw-ring-color', props.color)
}
}