fix(Field): input composing #7035
This commit is contained in:
@@ -56,3 +56,9 @@ export function preventDefault(event: Event, isStopPropagation?: boolean) {
|
||||
stopPropagation(event);
|
||||
}
|
||||
}
|
||||
|
||||
export function trigger(target: Element, type: string) {
|
||||
const inputEvent = document.createEvent('HTMLEvents');
|
||||
inputEvent.initEvent(type, true, true);
|
||||
target.dispatchEvent(inputEvent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user