MCPcopy
hub / github.com/Choices-js/Choices / hide

Method hide

src/scripts/components/dropdown.ts:43–49  ·  view source on GitHub ↗

* Hide dropdown from user

()

Source from the content-addressed store, hash-verified

41 * Hide dropdown from user
42 */
43 hide(): this {
44 removeClassesFromElement(this.element, this.classNames.activeState);
45 this.element.setAttribute('aria-expanded', 'false');
46 this.isActive = false;
47
48 return this;
49 }
50}

Calls 1

removeClassesFromElementFunction · 0.90

Tested by

no test coverage detected