Skip to content

Commit f3927dc

Browse files
authored
Prevent duplicate form submit for selectbox on inline edits (#1218)
1 parent e63c020 commit f3927dc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

assets/plugins/features/editable.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,10 @@ export class EditablePlugin implements DatagridPlugin {
110110
"input, textarea, select"
111111
)
112112
.forEach(el => {
113-
el.addEventListener("blur", () => submitCell(el));
113+
if (!(el instanceof HTMLSelectElement)) {
114+
el.addEventListener("blur", () => submitCell(el));
115+
}
116+
114117
el.addEventListener("keydown", e => {
115118
if (isEnter(e as KeyboardEvent)) {
116119
e.stopPropagation();

0 commit comments

Comments
 (0)