Skip to content

Commit

Permalink
fix: force focus state to dropdown.trigger as `document.activeElement…
Browse files Browse the repository at this point in the history
…` stays in body even with clicking
  • Loading branch information
sun-mota committed Dec 18, 2024
1 parent 5936959 commit 2ff889f
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/combobox/demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2397,6 +2397,7 @@ class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
// Do nothing
Expand Down
1 change: 1 addition & 0 deletions components/combobox/demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2301,6 +2301,7 @@ class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
// Do nothing
Expand Down
1 change: 1 addition & 0 deletions components/datepicker/demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -12576,6 +12576,7 @@ class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
// Do nothing
Expand Down
1 change: 1 addition & 0 deletions components/datepicker/demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -12324,6 +12324,7 @@ class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
// Do nothing
Expand Down
1 change: 1 addition & 0 deletions components/dropdown/demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,7 @@ class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
// Do nothing
Expand Down
1 change: 1 addition & 0 deletions components/dropdown/demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -1900,6 +1900,7 @@ class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
// Do nothing
Expand Down
1 change: 1 addition & 0 deletions components/dropdown/src/floatingUI.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ export default class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
default:
Expand Down
1 change: 1 addition & 0 deletions components/select/demo/api.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2337,6 +2337,7 @@ class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
// Do nothing
Expand Down
1 change: 1 addition & 0 deletions components/select/demo/index.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -2278,6 +2278,7 @@ class AuroFloatingUI {
this.handleFocusLoss();
break;
case 'click':
event.currentTarget.focus();
this.handleClick();
break;
// Do nothing
Expand Down

0 comments on commit 2ff889f

Please sign in to comment.