mirror of
https://github.com/Choices-js/Choices.git
synced 2024-05-22 07:26:39 +02:00
Update wrapped-element.ts
This commit is contained in:
parent
3dcafe77fa
commit
387bb011c1
|
@ -39,7 +39,7 @@ export default class WrappedElement {
|
|||
|
||||
conceal(): void {
|
||||
// Hide passed input
|
||||
this.element.classList.add(this.classNames.input);
|
||||
this.element.classList.add(...this.classNames.input.split(" "));
|
||||
this.element.hidden = true;
|
||||
|
||||
// Remove element from tab index
|
||||
|
@ -57,7 +57,7 @@ export default class WrappedElement {
|
|||
|
||||
reveal(): void {
|
||||
// Reinstate passed element
|
||||
this.element.classList.remove(this.classNames.input);
|
||||
this.element.classList.remove(...this.classNames.input.split(" "));
|
||||
this.element.hidden = false;
|
||||
this.element.removeAttribute('tabindex');
|
||||
|
||||
|
|
Loading…
Reference in a new issue