Skip to content

Commit

Permalink
Allow scanning on input type = 'search' (#1443)
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 authored Sep 24, 2024
1 parent 06f13ab commit 2bc442f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ext/js/dom/text-source-generator.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,10 @@ export class TextSourceGenerator {
case 'SELECT':
return TextSourceElement.create(element);
case 'INPUT':
if (/** @type {HTMLInputElement} */ (element).type === 'text') {
if (
/** @type {HTMLInputElement} */ (element).type === 'text' ||
/** @type {HTMLInputElement} */ (element).type === 'search'
) {
imposterSourceElement = element;
[imposter, imposterContainer] = this._createImposter(/** @type {HTMLInputElement} */ (element), false);
}
Expand Down

0 comments on commit 2bc442f

Please sign in to comment.