Fix rule focus when switch 'otherwise' rule is used

Fixes #3182
This commit is contained in:
Nick O'Leary 2021-10-12 17:18:02 +01:00
parent be7e28af5d
commit 439af2a325
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
1 changed files with 3 additions and 1 deletions

View File

@ -351,7 +351,9 @@
} else {
selectField.width("auto")
}
fieldToFocus.typedInput("focus");
if (fieldToFocus) {
fieldToFocus.typedInput("focus");
}
// Preselect the contents of the element
// if (focusValueField && document.activeElement) {
// document.activeElement.selectionStart = 0;