Skip to content

Commit eea553d

Browse files
committed
do not affect 2 date fix
1 parent def750d commit eea553d

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/widgets/forms/basic.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,10 @@ export function basicField (
194194
if (deferWhileFocused && dom.activeElement === field) return
195195
// i.e. lose focus with changed data
196196
if (params.pattern && !field.value.match(params.pattern)) return
197-
// Always disable during async save to prevent duplicate/overlapping updates,
198-
// including for date/datetime-local fields.
199-
field.disabled = true // See if this stops getting two dates from fumbling e.g the chrome datepicker.
197+
const disabledForSave = !deferWhileFocused
198+
if (disabledForSave) {
199+
field.disabled = true // See if this stops getting two dates from fumbling e.g the chrome datepicker.
200+
}
200201
field.setAttribute('style', inputStyle + 'color: gray;') // pending
201202
const ds = kb.statementsMatching(subject, property as any) // remove any multiple values
202203
let result

0 commit comments

Comments
 (0)