Update wrapped-element.ts

This commit is contained in:
Mike Bronner 2020-09-23 13:27:28 -07:00 committed by GitHub
parent 3dcafe77fa
commit 387bb011c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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');