mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 15:25:35 +08:00
DEV: Add select-kit helper isDisabled (#12827)
In a qunit test for a plugin I need to be able to check if a select-kit element is disabled or not. Adding this helper in core allows me to do that.
This commit is contained in:
parent
a169dc6832
commit
0f3b5387ea
|
@ -211,6 +211,10 @@ export default function selectKit(selector) {
|
|||
return queryAll(selector).hasClass("is-hidden");
|
||||
},
|
||||
|
||||
isDisabled() {
|
||||
return queryAll(selector).hasClass("is-disabled");
|
||||
},
|
||||
|
||||
header() {
|
||||
return headerHelper(queryAll(selector).find(".select-kit-header"));
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user