1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Merge pull request #3185 from node-red/switch-focus-fix

Fix rule focus when switch 'otherwise' rule is used
This commit is contained in:
Nick O'Leary 2021-10-13 14:41:42 +01:00 committed by GitHub
commit af1e38fdf7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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