mirror of
https://github.com/element-plus/element-plus.git
synced 2025-02-17 11:49:41 +08:00
fix(components): [time-picker] can not hide panel when click frequently (#7779)
This commit is contained in:
parent
f245986996
commit
488eaf5211
@ -385,13 +385,11 @@ export default defineComponent({
|
||||
|
||||
const onHide = () => {
|
||||
pickerActualVisible.value = false
|
||||
ignoreFocusEvent = false
|
||||
ctx.emit('visible-change', false)
|
||||
}
|
||||
|
||||
const focus = async (
|
||||
focusStartInput = true,
|
||||
isIgnoreFocusEvent = false
|
||||
) => {
|
||||
const focus = (focusStartInput = true, isIgnoreFocusEvent = false) => {
|
||||
ignoreFocusEvent = isIgnoreFocusEvent
|
||||
let input = refStartInput.value
|
||||
if (!focusStartInput && isRangeInput.value) {
|
||||
@ -400,8 +398,6 @@ export default defineComponent({
|
||||
if (input) {
|
||||
input.focus()
|
||||
}
|
||||
await nextTick()
|
||||
ignoreFocusEvent = false
|
||||
}
|
||||
|
||||
const handleFocusInput = (e) => {
|
||||
|
Loading…
Reference in New Issue
Block a user