UNPKG

@daysnap/vue-use

Version:
17 lines (16 loc) 430 B
export function useComposition() { const handleCompositionstart = (e) => { ; e.target.composing = true; }; const handleCompositionend = (e) => { var _a; ; e.target.composing = false; (_a = e.target) === null || _a === void 0 ? void 0 : _a.dispatchEvent(new InputEvent('input')); }; return { handleCompositionstart, handleCompositionend, }; }