Skip to content

Commit

Permalink
fix: add back document.body.append for the floating bib
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-mota committed Dec 4, 2024
1 parent 71a4172 commit 1f4e69f
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/combobox/demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2504,6 +2504,8 @@ class AuroFloatingUI {
this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');

document.body.append(this.element.bib);

this.handleTriggerTabIndex();

this.element.trigger.addEventListener('keydown', (event) => this.handleEvent(event));
Expand Down
2 changes: 2 additions & 0 deletions components/combobox/demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2415,6 +2415,8 @@ class AuroFloatingUI {
this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');

document.body.append(this.element.bib);

this.handleTriggerTabIndex();

this.element.trigger.addEventListener('keydown', (event) => this.handleEvent(event));
Expand Down
2 changes: 2 additions & 0 deletions components/dropdown/demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -1962,6 +1962,8 @@ class AuroFloatingUI {
this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');

document.body.append(this.element.bib);

this.handleTriggerTabIndex();

this.element.trigger.addEventListener('keydown', (event) => this.handleEvent(event));
Expand Down
2 changes: 2 additions & 0 deletions components/dropdown/demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -1944,6 +1944,8 @@ class AuroFloatingUI {
this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');

document.body.append(this.element.bib);

this.handleTriggerTabIndex();

this.element.trigger.addEventListener('keydown', (event) => this.handleEvent(event));
Expand Down
2 changes: 2 additions & 0 deletions components/dropdown/src/floatingUI.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ export default class AuroFloatingUI {
this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');

document.body.append(this.element.bib);

this.handleTriggerTabIndex();

this.element.trigger.addEventListener('keydown', (event) => this.handleEvent(event));
Expand Down
2 changes: 2 additions & 0 deletions components/select/demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2444,6 +2444,8 @@ class AuroFloatingUI {
this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');

document.body.append(this.element.bib);

this.handleTriggerTabIndex();

this.element.trigger.addEventListener('keydown', (event) => this.handleEvent(event));
Expand Down
2 changes: 2 additions & 0 deletions components/select/demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2392,6 +2392,8 @@ class AuroFloatingUI {
this.element.bibSizer = this.element.shadowRoot.querySelector('#bibSizer');
this.element.triggerChevron = this.element.shadowRoot.querySelector('#showStateIcon');

document.body.append(this.element.bib);

this.handleTriggerTabIndex();

this.element.trigger.addEventListener('keydown', (event) => this.handleEvent(event));
Expand Down

0 comments on commit 1f4e69f

Please sign in to comment.