mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Remove TypedInput from tab focus when only one type available
This commit is contained in:
parent
ff00afb5d7
commit
233a74c146
@ -669,6 +669,11 @@
|
|||||||
that.typeMap[result.value] = result;
|
that.typeMap[result.value] = result;
|
||||||
return result;
|
return result;
|
||||||
});
|
});
|
||||||
|
if (this.typeList.length < 2) {
|
||||||
|
this.selectTrigger.attr("tabindex", -1)
|
||||||
|
} else {
|
||||||
|
this.selectTrigger.attr("tabindex", 0)
|
||||||
|
}
|
||||||
this.selectTrigger.toggleClass("disabled", this.typeList.length === 1);
|
this.selectTrigger.toggleClass("disabled", this.typeList.length === 1);
|
||||||
this.selectTrigger.find(".fa-caret-down").toggle(this.typeList.length > 1)
|
this.selectTrigger.find(".fa-caret-down").toggle(this.typeList.length > 1)
|
||||||
if (this.menu) {
|
if (this.menu) {
|
||||||
|
Loading…
Reference in New Issue
Block a user