Skip to content

Commit bdcc1ca

Browse files
authored
Update web_src/js/features/common-button.ts
1 parent a4a767b commit bdcc1ca

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

web_src/js/features/common-button.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ function onShowModalClick(e: MouseEvent) {
137137
}
138138

139139
if (attrTargetAttr) {
140-
// @ts-expect-error - no idea how to fix
141-
attrTarget[camelize(attrTargetAttr)] = attrib.value;
140+
(attrTarget as any)[camelize(attrTargetAttr)] = attrib.value;
142141
} else if (attrTarget.matches('input, textarea')) {
143142
(attrTarget as HTMLInputElement | HTMLTextAreaElement).value = attrib.value; // FIXME: add more supports like checkbox
144143
} else {

0 commit comments

Comments
 (0)