Skip to content

Commit 909e62e

Browse files
committed
fix: Set caret color when input is regular
1 parent e40d8de commit 909e62e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/VueDatePicker/components/DatepickerInput.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@
110110
dp__input_valid: props.state,
111111
dp__input_invalid: props.state === false,
112112
dp__input_focus: isFocused.value || props.isMenuOpen,
113+
dp__input_reg: !props.textInput,
113114
[props.inputClassName]: !!props.inputClassName,
114115
}),
115116
);

src/VueDatePicker/style/components/_DatepickerInput.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@
3232
}
3333
}
3434

35+
.dp__input_reg {
36+
caret-color: transparent;
37+
}
38+
3539
.dp__input_focus {
3640
border-color: var(--dp-border-color-hover);
3741
}

0 commit comments

Comments
 (0)