@aurodesignsystem-dev/auro-formkit 0.0.0-pr740.4 → 0.0.0-pr740.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3836,12 +3836,6 @@ class AuroDropdownBib extends i$2 {
3836
3836
  reflect: true
3837
3837
  },
3838
3838
 
3839
- isVisible: {
3840
- type: Boolean,
3841
- reflect: true,
3842
- attribute: 'data-show'
3843
- },
3844
-
3845
3839
  /**
3846
3840
  * If declared, will apply all styles for the common theme.
3847
3841
  */
@@ -3928,18 +3922,6 @@ class AuroDropdownBib extends i$2 {
3928
3922
  }
3929
3923
  }
3930
3924
  }
3931
-
3932
- if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
3933
- if (this.isFullscreen && this.isVisible) {
3934
- this.addEventListener('touchstart', this.preventBodyScroll);
3935
- this.addEventListener('touchend', this.preventBodyScroll);
3936
- this.addEventListener('touchmove', this.preventBodyScroll);
3937
- } else {
3938
- this.removeEventListener('touchstart', this.preventBodyScroll);
3939
- this.removeEventListener('touchend', this.preventBodyScroll);
3940
- this.removeEventListener('touchmove', this.preventBodyScroll);
3941
- }
3942
- }
3943
3925
  }
3944
3926
 
3945
3927
  connectedCallback() {
@@ -3964,8 +3946,6 @@ class AuroDropdownBib extends i$2 {
3964
3946
  firstUpdated(changedProperties) {
3965
3947
  super.firstUpdated(changedProperties);
3966
3948
 
3967
- this.preventBodyScroll = this.preventBodyScroll.bind(this);
3968
-
3969
3949
  // Dispatch a custom event when the component is connected
3970
3950
  this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
3971
3951
  bubbles: true,
@@ -3976,61 +3956,6 @@ class AuroDropdownBib extends i$2 {
3976
3956
  }));
3977
3957
  }
3978
3958
 
3979
- /**
3980
- * Prevents scrolling of the body when touching empty areas of the component.
3981
- * @param {Event} event - The touchmove event.
3982
- * @returns {void}
3983
- */
3984
- preventBodyScroll(event) {
3985
- function checkIfDecent(target, parent) {
3986
- if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
3987
- return false;
3988
- }
3989
-
3990
- if (parent.tagName.toLowerCase() === 'slot') {
3991
- const assignedElements = parent.assignedElements();
3992
- if (assignedElements) {
3993
- for (const child of assignedElements) {
3994
- if (checkIfDecent(target, child)) {
3995
- return true;
3996
- }
3997
- }
3998
- }
3999
- return false;
4000
- }
4001
-
4002
- if (parent.contains(target)) {
4003
- return true;
4004
- }
4005
-
4006
- if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
4007
- return true;
4008
- }
4009
-
4010
- if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
4011
- return true;
4012
- }
4013
-
4014
- if (parent.children) {
4015
- for (const child of parent.children) {
4016
- if (checkIfDecent(target, child)) {
4017
- return true;
4018
- }
4019
- }
4020
- }
4021
-
4022
- return false;
4023
- }
4024
- const isDecent = checkIfDecent(event.target, this.bibTemplate);
4025
- if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
4026
- // if the target is on the bib, let it go for `click` event
4027
- return;
4028
- }
4029
-
4030
- event.preventDefault();
4031
- event.stopImmediatePropagation();
4032
- }
4033
-
4034
3959
  // function that renders the HTML and CSS into the scope of the component
4035
3960
  render() {
4036
3961
  const classes = {
@@ -4871,6 +4796,9 @@ class AuroDropdown extends AuroElement$4 {
4871
4796
  }
4872
4797
 
4873
4798
  this.bibContent = this.floater.element.bib;
4799
+ this.bibContent.setAttribute('role', 'dialog');
4800
+ this.bibContent.setAttribute('aria-modal', 'true');
4801
+ this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
4874
4802
 
4875
4803
  // Add the tag name as an attribute if it is different than the component name
4876
4804
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
@@ -16252,7 +16180,7 @@ class AuroCombobox extends AuroElement$1 {
16252
16180
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16253
16181
  setTimeout(() => {
16254
16182
  if (document.activeElement === this) {
16255
- this.setInputFocus();
16183
+ this.focus();
16256
16184
  }
16257
16185
  }, 0);
16258
16186
  });
@@ -16271,24 +16199,13 @@ class AuroCombobox extends AuroElement$1 {
16271
16199
  this.hideBib = this.hideBib.bind(this);
16272
16200
  this.bibtemplate.addEventListener('close-click', this.hideBib);
16273
16201
 
16274
- this.setInputFocus = this.setInputFocus.bind(this);
16202
+ this.focus = this.focus.bind(this);
16275
16203
  this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
16276
16204
  // event when the strategy(bib mode) is changed between fullscreen and floating
16277
- setTimeout(this.setInputFocus, 0);
16205
+ setTimeout(this.focus, 0);
16278
16206
  });
16279
16207
  }
16280
16208
 
16281
- /**
16282
- * @private
16283
- */
16284
- setInputFocus() {
16285
- if (this.dropdown.isBibFullscreen && this.dropdown.isPopoverVisible) {
16286
- this.inputInBib.focus();
16287
- } else {
16288
- this.input.focus();
16289
- }
16290
- }
16291
-
16292
16209
  /**
16293
16210
  * Binds all behavior needed to the menu after rendering.
16294
16211
  * @private
@@ -16578,7 +16495,11 @@ class AuroCombobox extends AuroElement$1 {
16578
16495
  * @returns {void}
16579
16496
  */
16580
16497
  focus() {
16581
- this.input.focus();
16498
+ if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
16499
+ this.inputInBib.focus();
16500
+ } else {
16501
+ this.input.focus();
16502
+ }
16582
16503
  }
16583
16504
 
16584
16505
  /**
@@ -3694,12 +3694,6 @@ class AuroDropdownBib extends i$2 {
3694
3694
  reflect: true
3695
3695
  },
3696
3696
 
3697
- isVisible: {
3698
- type: Boolean,
3699
- reflect: true,
3700
- attribute: 'data-show'
3701
- },
3702
-
3703
3697
  /**
3704
3698
  * If declared, will apply all styles for the common theme.
3705
3699
  */
@@ -3786,18 +3780,6 @@ class AuroDropdownBib extends i$2 {
3786
3780
  }
3787
3781
  }
3788
3782
  }
3789
-
3790
- if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
3791
- if (this.isFullscreen && this.isVisible) {
3792
- this.addEventListener('touchstart', this.preventBodyScroll);
3793
- this.addEventListener('touchend', this.preventBodyScroll);
3794
- this.addEventListener('touchmove', this.preventBodyScroll);
3795
- } else {
3796
- this.removeEventListener('touchstart', this.preventBodyScroll);
3797
- this.removeEventListener('touchend', this.preventBodyScroll);
3798
- this.removeEventListener('touchmove', this.preventBodyScroll);
3799
- }
3800
- }
3801
3783
  }
3802
3784
 
3803
3785
  connectedCallback() {
@@ -3822,8 +3804,6 @@ class AuroDropdownBib extends i$2 {
3822
3804
  firstUpdated(changedProperties) {
3823
3805
  super.firstUpdated(changedProperties);
3824
3806
 
3825
- this.preventBodyScroll = this.preventBodyScroll.bind(this);
3826
-
3827
3807
  // Dispatch a custom event when the component is connected
3828
3808
  this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
3829
3809
  bubbles: true,
@@ -3834,61 +3814,6 @@ class AuroDropdownBib extends i$2 {
3834
3814
  }));
3835
3815
  }
3836
3816
 
3837
- /**
3838
- * Prevents scrolling of the body when touching empty areas of the component.
3839
- * @param {Event} event - The touchmove event.
3840
- * @returns {void}
3841
- */
3842
- preventBodyScroll(event) {
3843
- function checkIfDecent(target, parent) {
3844
- if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
3845
- return false;
3846
- }
3847
-
3848
- if (parent.tagName.toLowerCase() === 'slot') {
3849
- const assignedElements = parent.assignedElements();
3850
- if (assignedElements) {
3851
- for (const child of assignedElements) {
3852
- if (checkIfDecent(target, child)) {
3853
- return true;
3854
- }
3855
- }
3856
- }
3857
- return false;
3858
- }
3859
-
3860
- if (parent.contains(target)) {
3861
- return true;
3862
- }
3863
-
3864
- if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
3865
- return true;
3866
- }
3867
-
3868
- if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
3869
- return true;
3870
- }
3871
-
3872
- if (parent.children) {
3873
- for (const child of parent.children) {
3874
- if (checkIfDecent(target, child)) {
3875
- return true;
3876
- }
3877
- }
3878
- }
3879
-
3880
- return false;
3881
- }
3882
- const isDecent = checkIfDecent(event.target, this.bibTemplate);
3883
- if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
3884
- // if the target is on the bib, let it go for `click` event
3885
- return;
3886
- }
3887
-
3888
- event.preventDefault();
3889
- event.stopImmediatePropagation();
3890
- }
3891
-
3892
3817
  // function that renders the HTML and CSS into the scope of the component
3893
3818
  render() {
3894
3819
  const classes = {
@@ -4729,6 +4654,9 @@ class AuroDropdown extends AuroElement$4 {
4729
4654
  }
4730
4655
 
4731
4656
  this.bibContent = this.floater.element.bib;
4657
+ this.bibContent.setAttribute('role', 'dialog');
4658
+ this.bibContent.setAttribute('aria-modal', 'true');
4659
+ this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
4732
4660
 
4733
4661
  // Add the tag name as an attribute if it is different than the component name
4734
4662
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
@@ -16110,7 +16038,7 @@ class AuroCombobox extends AuroElement$1 {
16110
16038
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16111
16039
  setTimeout(() => {
16112
16040
  if (document.activeElement === this) {
16113
- this.setInputFocus();
16041
+ this.focus();
16114
16042
  }
16115
16043
  }, 0);
16116
16044
  });
@@ -16129,24 +16057,13 @@ class AuroCombobox extends AuroElement$1 {
16129
16057
  this.hideBib = this.hideBib.bind(this);
16130
16058
  this.bibtemplate.addEventListener('close-click', this.hideBib);
16131
16059
 
16132
- this.setInputFocus = this.setInputFocus.bind(this);
16060
+ this.focus = this.focus.bind(this);
16133
16061
  this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
16134
16062
  // event when the strategy(bib mode) is changed between fullscreen and floating
16135
- setTimeout(this.setInputFocus, 0);
16063
+ setTimeout(this.focus, 0);
16136
16064
  });
16137
16065
  }
16138
16066
 
16139
- /**
16140
- * @private
16141
- */
16142
- setInputFocus() {
16143
- if (this.dropdown.isBibFullscreen && this.dropdown.isPopoverVisible) {
16144
- this.inputInBib.focus();
16145
- } else {
16146
- this.input.focus();
16147
- }
16148
- }
16149
-
16150
16067
  /**
16151
16068
  * Binds all behavior needed to the menu after rendering.
16152
16069
  * @private
@@ -16436,7 +16353,11 @@ class AuroCombobox extends AuroElement$1 {
16436
16353
  * @returns {void}
16437
16354
  */
16438
16355
  focus() {
16439
- this.input.focus();
16356
+ if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
16357
+ this.inputInBib.focus();
16358
+ } else {
16359
+ this.input.focus();
16360
+ }
16440
16361
  }
16441
16362
 
16442
16363
  /**
@@ -332,9 +332,10 @@ export class AuroCombobox extends AuroElement {
332
332
  bibtemplate: any;
333
333
  inputInBib: any;
334
334
  /**
335
- * @private
335
+ * Focuses the combobox trigger input.
336
+ * @returns {void}
336
337
  */
337
- private setInputFocus;
338
+ focus(): void;
338
339
  /**
339
340
  * Binds all behavior needed to the menu after rendering.
340
341
  * @private
@@ -380,11 +381,6 @@ export class AuroCombobox extends AuroElement {
380
381
  firstUpdated(): void;
381
382
  dropdown: any;
382
383
  input: any;
383
- /**
384
- * Focuses the combobox trigger input.
385
- * @returns {void}
386
- */
387
- focus(): void;
388
384
  /**
389
385
  * Resets component to initial state.
390
386
  * @returns {void}
@@ -3625,12 +3625,6 @@ class AuroDropdownBib extends LitElement {
3625
3625
  reflect: true
3626
3626
  },
3627
3627
 
3628
- isVisible: {
3629
- type: Boolean,
3630
- reflect: true,
3631
- attribute: 'data-show'
3632
- },
3633
-
3634
3628
  /**
3635
3629
  * If declared, will apply all styles for the common theme.
3636
3630
  */
@@ -3717,18 +3711,6 @@ class AuroDropdownBib extends LitElement {
3717
3711
  }
3718
3712
  }
3719
3713
  }
3720
-
3721
- if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
3722
- if (this.isFullscreen && this.isVisible) {
3723
- this.addEventListener('touchstart', this.preventBodyScroll);
3724
- this.addEventListener('touchend', this.preventBodyScroll);
3725
- this.addEventListener('touchmove', this.preventBodyScroll);
3726
- } else {
3727
- this.removeEventListener('touchstart', this.preventBodyScroll);
3728
- this.removeEventListener('touchend', this.preventBodyScroll);
3729
- this.removeEventListener('touchmove', this.preventBodyScroll);
3730
- }
3731
- }
3732
3714
  }
3733
3715
 
3734
3716
  connectedCallback() {
@@ -3753,8 +3735,6 @@ class AuroDropdownBib extends LitElement {
3753
3735
  firstUpdated(changedProperties) {
3754
3736
  super.firstUpdated(changedProperties);
3755
3737
 
3756
- this.preventBodyScroll = this.preventBodyScroll.bind(this);
3757
-
3758
3738
  // Dispatch a custom event when the component is connected
3759
3739
  this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
3760
3740
  bubbles: true,
@@ -3765,61 +3745,6 @@ class AuroDropdownBib extends LitElement {
3765
3745
  }));
3766
3746
  }
3767
3747
 
3768
- /**
3769
- * Prevents scrolling of the body when touching empty areas of the component.
3770
- * @param {Event} event - The touchmove event.
3771
- * @returns {void}
3772
- */
3773
- preventBodyScroll(event) {
3774
- function checkIfDecent(target, parent) {
3775
- if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
3776
- return false;
3777
- }
3778
-
3779
- if (parent.tagName.toLowerCase() === 'slot') {
3780
- const assignedElements = parent.assignedElements();
3781
- if (assignedElements) {
3782
- for (const child of assignedElements) {
3783
- if (checkIfDecent(target, child)) {
3784
- return true;
3785
- }
3786
- }
3787
- }
3788
- return false;
3789
- }
3790
-
3791
- if (parent.contains(target)) {
3792
- return true;
3793
- }
3794
-
3795
- if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
3796
- return true;
3797
- }
3798
-
3799
- if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
3800
- return true;
3801
- }
3802
-
3803
- if (parent.children) {
3804
- for (const child of parent.children) {
3805
- if (checkIfDecent(target, child)) {
3806
- return true;
3807
- }
3808
- }
3809
- }
3810
-
3811
- return false;
3812
- }
3813
- const isDecent = checkIfDecent(event.target, this.bibTemplate);
3814
- if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
3815
- // if the target is on the bib, let it go for `click` event
3816
- return;
3817
- }
3818
-
3819
- event.preventDefault();
3820
- event.stopImmediatePropagation();
3821
- }
3822
-
3823
3748
  // function that renders the HTML and CSS into the scope of the component
3824
3749
  render() {
3825
3750
  const classes = {
@@ -4660,6 +4585,9 @@ class AuroDropdown extends AuroElement$4 {
4660
4585
  }
4661
4586
 
4662
4587
  this.bibContent = this.floater.element.bib;
4588
+ this.bibContent.setAttribute('role', 'dialog');
4589
+ this.bibContent.setAttribute('aria-modal', 'true');
4590
+ this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
4663
4591
 
4664
4592
  // Add the tag name as an attribute if it is different than the component name
4665
4593
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
@@ -16028,7 +15956,7 @@ class AuroCombobox extends AuroElement {
16028
15956
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16029
15957
  setTimeout(() => {
16030
15958
  if (document.activeElement === this) {
16031
- this.setInputFocus();
15959
+ this.focus();
16032
15960
  }
16033
15961
  }, 0);
16034
15962
  });
@@ -16047,24 +15975,13 @@ class AuroCombobox extends AuroElement {
16047
15975
  this.hideBib = this.hideBib.bind(this);
16048
15976
  this.bibtemplate.addEventListener('close-click', this.hideBib);
16049
15977
 
16050
- this.setInputFocus = this.setInputFocus.bind(this);
15978
+ this.focus = this.focus.bind(this);
16051
15979
  this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
16052
15980
  // event when the strategy(bib mode) is changed between fullscreen and floating
16053
- setTimeout(this.setInputFocus, 0);
15981
+ setTimeout(this.focus, 0);
16054
15982
  });
16055
15983
  }
16056
15984
 
16057
- /**
16058
- * @private
16059
- */
16060
- setInputFocus() {
16061
- if (this.dropdown.isBibFullscreen && this.dropdown.isPopoverVisible) {
16062
- this.inputInBib.focus();
16063
- } else {
16064
- this.input.focus();
16065
- }
16066
- }
16067
-
16068
15985
  /**
16069
15986
  * Binds all behavior needed to the menu after rendering.
16070
15987
  * @private
@@ -16354,7 +16271,11 @@ class AuroCombobox extends AuroElement {
16354
16271
  * @returns {void}
16355
16272
  */
16356
16273
  focus() {
16357
- this.input.focus();
16274
+ if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
16275
+ this.inputInBib.focus();
16276
+ } else {
16277
+ this.input.focus();
16278
+ }
16358
16279
  }
16359
16280
 
16360
16281
  /**
@@ -3625,12 +3625,6 @@ class AuroDropdownBib extends LitElement {
3625
3625
  reflect: true
3626
3626
  },
3627
3627
 
3628
- isVisible: {
3629
- type: Boolean,
3630
- reflect: true,
3631
- attribute: 'data-show'
3632
- },
3633
-
3634
3628
  /**
3635
3629
  * If declared, will apply all styles for the common theme.
3636
3630
  */
@@ -3717,18 +3711,6 @@ class AuroDropdownBib extends LitElement {
3717
3711
  }
3718
3712
  }
3719
3713
  }
3720
-
3721
- if (changedProperties.has('isFullscreen') || changedProperties.has('isVisible')) {
3722
- if (this.isFullscreen && this.isVisible) {
3723
- this.addEventListener('touchstart', this.preventBodyScroll);
3724
- this.addEventListener('touchend', this.preventBodyScroll);
3725
- this.addEventListener('touchmove', this.preventBodyScroll);
3726
- } else {
3727
- this.removeEventListener('touchstart', this.preventBodyScroll);
3728
- this.removeEventListener('touchend', this.preventBodyScroll);
3729
- this.removeEventListener('touchmove', this.preventBodyScroll);
3730
- }
3731
- }
3732
3714
  }
3733
3715
 
3734
3716
  connectedCallback() {
@@ -3753,8 +3735,6 @@ class AuroDropdownBib extends LitElement {
3753
3735
  firstUpdated(changedProperties) {
3754
3736
  super.firstUpdated(changedProperties);
3755
3737
 
3756
- this.preventBodyScroll = this.preventBodyScroll.bind(this);
3757
-
3758
3738
  // Dispatch a custom event when the component is connected
3759
3739
  this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
3760
3740
  bubbles: true,
@@ -3765,61 +3745,6 @@ class AuroDropdownBib extends LitElement {
3765
3745
  }));
3766
3746
  }
3767
3747
 
3768
- /**
3769
- * Prevents scrolling of the body when touching empty areas of the component.
3770
- * @param {Event} event - The touchmove event.
3771
- * @returns {void}
3772
- */
3773
- preventBodyScroll(event) {
3774
- function checkIfDecent(target, parent) {
3775
- if (!parent.tagName || "text,svg".includes(parent.tagName.toLowerCase())) {
3776
- return false;
3777
- }
3778
-
3779
- if (parent.tagName.toLowerCase() === 'slot') {
3780
- const assignedElements = parent.assignedElements();
3781
- if (assignedElements) {
3782
- for (const child of assignedElements) {
3783
- if (checkIfDecent(target, child)) {
3784
- return true;
3785
- }
3786
- }
3787
- }
3788
- return false;
3789
- }
3790
-
3791
- if (parent.contains(target)) {
3792
- return true;
3793
- }
3794
-
3795
- if (parent.shadowRoot && checkIfDecent(target, parent.shadowRoot)) {
3796
- return true;
3797
- }
3798
-
3799
- if (target.assignedSlot && checkIfDecent(target.assignedSlot, parent)) {
3800
- return true;
3801
- }
3802
-
3803
- if (parent.children) {
3804
- for (const child of parent.children) {
3805
- if (checkIfDecent(target, child)) {
3806
- return true;
3807
- }
3808
- }
3809
- }
3810
-
3811
- return false;
3812
- }
3813
- const isDecent = checkIfDecent(event.target, this.bibTemplate);
3814
- if (isDecent && (event.type === 'touchstart' || event.type === 'touchend')) {
3815
- // if the target is on the bib, let it go for `click` event
3816
- return;
3817
- }
3818
-
3819
- event.preventDefault();
3820
- event.stopImmediatePropagation();
3821
- }
3822
-
3823
3748
  // function that renders the HTML and CSS into the scope of the component
3824
3749
  render() {
3825
3750
  const classes = {
@@ -4660,6 +4585,9 @@ class AuroDropdown extends AuroElement$4 {
4660
4585
  }
4661
4586
 
4662
4587
  this.bibContent = this.floater.element.bib;
4588
+ this.bibContent.setAttribute('role', 'dialog');
4589
+ this.bibContent.setAttribute('aria-modal', 'true');
4590
+ this.bibContent.setAttribute('aria-labelledby', 'triggerLabel');
4663
4591
 
4664
4592
  // Add the tag name as an attribute if it is different than the component name
4665
4593
  this.runtimeUtils.handleComponentTagRename(this, 'auro-dropdown');
@@ -16028,7 +15956,7 @@ class AuroCombobox extends AuroElement {
16028
15956
  // wait a frame in case the bib gets hide immediately after showing because there is no value
16029
15957
  setTimeout(() => {
16030
15958
  if (document.activeElement === this) {
16031
- this.setInputFocus();
15959
+ this.focus();
16032
15960
  }
16033
15961
  }, 0);
16034
15962
  });
@@ -16047,24 +15975,13 @@ class AuroCombobox extends AuroElement {
16047
15975
  this.hideBib = this.hideBib.bind(this);
16048
15976
  this.bibtemplate.addEventListener('close-click', this.hideBib);
16049
15977
 
16050
- this.setInputFocus = this.setInputFocus.bind(this);
15978
+ this.focus = this.focus.bind(this);
16051
15979
  this.dropdown.addEventListener('auroDropdown-strategy-change', () => {
16052
15980
  // event when the strategy(bib mode) is changed between fullscreen and floating
16053
- setTimeout(this.setInputFocus, 0);
15981
+ setTimeout(this.focus, 0);
16054
15982
  });
16055
15983
  }
16056
15984
 
16057
- /**
16058
- * @private
16059
- */
16060
- setInputFocus() {
16061
- if (this.dropdown.isBibFullscreen && this.dropdown.isPopoverVisible) {
16062
- this.inputInBib.focus();
16063
- } else {
16064
- this.input.focus();
16065
- }
16066
- }
16067
-
16068
15985
  /**
16069
15986
  * Binds all behavior needed to the menu after rendering.
16070
15987
  * @private
@@ -16354,7 +16271,11 @@ class AuroCombobox extends AuroElement {
16354
16271
  * @returns {void}
16355
16272
  */
16356
16273
  focus() {
16357
- this.input.focus();
16274
+ if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
16275
+ this.inputInBib.focus();
16276
+ } else {
16277
+ this.input.focus();
16278
+ }
16358
16279
  }
16359
16280
 
16360
16281
  /**