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:
Blake Erickson 2021-04-26 14:39:41 -06:00 committed by GitHub
parent a169dc6832
commit 0f3b5387ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"));
},