0
0

Vuejs 検索フォームなど 日本語変換前の値を取得

Posted at

普通はこっち。

<input type="search" v-model="word">
{{ word }}

これ(↓)だと日本語変換の確定前(ひらがなの状態など)でwordが変更される。リアルタイムの検索で便利。

<input type="search" :value="word" @input="word = $event.target.value">
{{ word }}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0