5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

【IE】selectboxをaタグで囲うとEnterで選択できない

Last updated at Posted at 2019-10-02

スクリーンショット 2019-10-02 10.57.48.png
Enterで決定できない!!

解決方法は?

  1. aタグで囲うのをやめる。
  2. そもそもIEだけだし致命的ではないので無視。

とはいえ、IEユーザーの利用が多い箇所では少し不便です。
selectboxをaタグで囲うパターンはあまり無いですが、心当たりがある場合は直しときましょう!

【追記】
@rryu さんに教えてもらい、そもそもaタグの中にselect要素を入れることは不適切だということが分かりました。不適切な構造且つバグも発生するので今後は見つけ次第修正します!
参考:https://developer.mozilla.org/ja/docs/Web/HTML/Element/a#Properties

5
4
2

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
5
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?