node = document.querySelector('input#my-query')
_onComposition = false
node.addEventListener 'change', (ev) =>
return if _onComposition # 変換中
console.log ev.target.value
node.addEventListener 'compositionstart', =>
_onComposition = true
node.addEventListener 'compositionend', =>
_onComposition = false
More than 5 years have passed since last update.
input/textareaでIMEでの変換中にchangeイベントを間引く
Last updated at Posted at 2015-04-12
Register as a new user and use Qiita more conveniently
- You get articles that match your needs
- You can efficiently read back useful information
- You can use dark theme