fix: repeated input in firefox browser #357
This commit is contained in:
@@ -24,7 +24,7 @@ function compositionend(host: CanvasEvent, evt: CompositionEvent) {
|
|||||||
if (host.compositionInfo) {
|
if (host.compositionInfo) {
|
||||||
input(evt.data, host)
|
input(evt.data, host)
|
||||||
}
|
}
|
||||||
})
|
}, 1) // 如果为0,火狐浏览器会在input事件之前执行导致重复输入
|
||||||
}
|
}
|
||||||
// 移除代理输入框数据
|
// 移除代理输入框数据
|
||||||
const cursor = draw.getCursor()
|
const cursor = draw.getCursor()
|
||||||
|
|||||||
Reference in New Issue
Block a user