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

Ensure typedInput without value has focus class removed

Closes #2945
This commit is contained in:
Nick O'Leary 2021-04-20 23:25:56 +01:00
parent 0e06da6c63
commit f8d5fef3c4
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -389,6 +389,11 @@
evt.stopPropagation();
}).on('focus', function() {
that.uiSelect.addClass('red-ui-typedInput-focus');
}).on('blur', function() {
var opt = that.typeMap[that.propertyType];
if (opt.hasValue === false) {
that.uiSelect.removeClass('red-ui-typedInput-focus');
}
})
// explicitly set optionSelectTrigger display to inline-block otherwise jQ sets it to 'inline'