aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Fromwork <stevefromwork@live.com>2020-08-31 14:50:06 +0900
committerSteve Fromwork <stevefromwork@live.com>2020-08-31 14:50:06 +0900
commitb0c90a7c1bd83deec65eda623a11c24024ea8b2c (patch)
tree82243cedccc49df7b4fb36ebb699d505feb1c3bc
parent1ed179dd8cb462e12b8eee4fd186c36f1cf3307d (diff)
Focus inputs without type
-rw-r--r--src/content/presenters/FocusPresenter.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/content/presenters/FocusPresenter.ts b/src/content/presenters/FocusPresenter.ts
index 4d70a6e..3591039 100644
--- a/src/content/presenters/FocusPresenter.ts
+++ b/src/content/presenters/FocusPresenter.ts
@@ -11,7 +11,7 @@ export class FocusPresenterImpl implements FocusPresenter {
.map((type) => `input[type=${type}]`)
.join(",");
const targets = window.document.querySelectorAll(
- inputSelector + ",textarea"
+ inputSelector + ",input:not([type]),textarea"
);
const target = Array.from(targets).find(doms.isVisible);
if (target instanceof HTMLInputElement) {