~nicolaskempf57/select-a11y

5b73fe7f397c366e3117d1e51820c22894d6c1ed — Nicolas KEMPF 3 months ago 4ab2acd
fix: fix button can't have a div child
3 files changed, 3 insertions(+), 3 deletions(-)

M dist/main.js
M dist/module.js
M src/select-a11y.js
M dist/main.js => dist/main.js +1 -1
@@ 157,7 157,7 @@ class $21b19656d700fd08$var$Select {
        button.setAttribute('type', 'button');
        button.setAttribute('aria-expanded', this.open);
        button.className = 'select-a11y-button';
        const text = document.createElement('div');
        const text = document.createElement('span');
        text.className = 'select-a11y-button__text';
        if (this.multiple) text.innerText = this.label.innerText;
        else {

M dist/module.js => dist/module.js +1 -1
@@ 147,7 147,7 @@ class $5a3b80354f588438$var$Select {
        button.setAttribute('type', 'button');
        button.setAttribute('aria-expanded', this.open);
        button.className = 'select-a11y-button';
        const text = document.createElement('div');
        const text = document.createElement('span');
        text.className = 'select-a11y-button__text';
        if (this.multiple) text.innerText = this.label.innerText;
        else {

M src/select-a11y.js => src/select-a11y.js +1 -1
@@ 183,7 183,7 @@ class Select {
    button.setAttribute('type', 'button');
    button.setAttribute('aria-expanded', this.open);
    button.className = 'select-a11y-button';
    const text = document.createElement('div');
    const text = document.createElement('span');
    text.className = 'select-a11y-button__text';

    if (this.multiple) {