bigskysoftware / bigskysoftware/_hyperscript
Current event handlers is not setting or giving the value
- 主要言語
- JavaScript
- スター
- 3.8k
- フォーク
- 172
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Thank you carson and community
I have multiple select fields to select countries, if the user selects the same country in another select field then I show an alert and then set the value of that select field to default value.
```
Select Country
Afghanistan
Åland Islands
Albania
...
Select Country
Afghanistan
Åland Islands
Albania
...
...
```
I have to use ` document.activeElement` in the above code to set or receive values because set value of me to `'Select Country'` is not working.
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、複数の国セレクトを含む、提供された HTML と _hyperscript handler を再現します。change イベント中に `set value of me` と `document.activeElement` がどのように解決されるかを調べます。重複した国の alert が引き続き表示され、影響を受けたセレクトが `document.activeElement` に依存せず `Select Country` にリセットされれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript
- 領域
- frontend
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 32/100