developit / developit/tags-input
Keyboard events created with DOM don't trigger
- 主要言語
- JavaScript
- スター
- 333
- フォーク
- 46
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
There is a [known bug with Webkit](https://bugs.webkit.org/show_bug.cgi?id=16735) where KeyboardEvents created by the DOM have keyCode and charCode of 0, thus preventing us from manually triggering 'change' or 'input' events with this library.
I have managed to create a workaround by triggering a 'blur' Event on the input, but ultimately triggering the KeyboardEvent with a Tab or Comma would have been a better way of interacting.
Native JavaScript, particularly JS packages, is not my forte but I'm sure a simple solution to this issue would be to modify the event listeners to work off Keys rather than KeyCodes.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、issue に記載されている WebKit の動作を再現します。DOM で作成された KeyboardEvents では、keyCode と charCode が 0 に設定されています。ライブラリの event listeners を確認し、key codes の代わりに keys を使用できるか調査します。その後、blur に依存せずに Tab または Comma で意図した入力または変更の動作をトリガーできることを確認します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100