MCPcopy Create free account
hub / github.com/aspnet/AzureSignalR-samples / isDisabled

Function isDisabled

aspnet-samples/AspNetForm/Scripts/bootstrap.js:187–198  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185 return elementIsVisible;
186 };
187 const isDisabled = element => {
188 if (!element || element.nodeType !== Node.ELEMENT_NODE) {
189 return true;
190 }
191 if (element.classList.contains('disabled')) {
192 return true;
193 }
194 if (typeof element.disabled !== 'undefined') {
195 return element.disabled;
196 }
197 return element.hasAttribute('disabled') && element.getAttribute('disabled') !== 'false';
198 };
199 const findShadowRoot = element => {
200 if (!document.documentElement.attachShadow) {
201 return null;

Callers 7

focusableChildrenFunction · 0.70
enableDismissTriggerFunction · 0.70
showMethod · 0.70
hideMethod · 0.70
bootstrap.jsFile · 0.70
_keydownMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected