Skip to content

Commit d61d4a6

Browse files
committed
オートコンプリートの設定などが消えてしまう不具合を修正
1 parent 9b5d55e commit d61d4a6

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/swap-state.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,16 @@ export class SwapState {
112112

113113
const UI_ATTRS = [
114114
"placeholder",
115+
"list",
115116
"inputmode",
116117
"autocomplete",
118+
"autocapitalize",
119+
"autocorrect",
117120
"minlength",
118121
"maxlength",
122+
"size",
119123
"pattern",
124+
"dir",
120125
"title",
121126
"tabindex",
122127
"style",
@@ -148,6 +153,7 @@ export class SwapState {
148153

149154
for (const [k, v] of Object.entries(input.dataset)) {
150155
if (k.startsWith("tig")) { continue; }
156+
if (v == null) { continue; }
151157
this.originalDataset[k] = v;
152158
}
153159
}

0 commit comments

Comments
 (0)