@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.111 → 0.0.0-pr624.112

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.
@@ -29271,9 +29271,9 @@ class AuroDatePicker extends AuroElement$1 {
29271
29271
 
29272
29272
  // Determine if the target is an input element
29273
29273
  const targetIsInput = initTarget.tagName === 'INPUT';
29274
+ const isFocusAlreadyOnInput = this.inputList.includes(this.shadowRoot.activeElement);
29274
29275
 
29275
- if (layoutRequiresHandling && !targetIsInput) {
29276
-
29276
+ if (layoutRequiresHandling && !targetIsInput && !isFocusAlreadyOnInput) {
29277
29277
  // Focus the first input
29278
29278
  this.inputList[0].focus();
29279
29279
  }
@@ -29012,9 +29012,9 @@ class AuroDatePicker extends AuroElement$1 {
29012
29012
 
29013
29013
  // Determine if the target is an input element
29014
29014
  const targetIsInput = initTarget.tagName === 'INPUT';
29015
+ const isFocusAlreadyOnInput = this.inputList.includes(this.shadowRoot.activeElement);
29015
29016
 
29016
- if (layoutRequiresHandling && !targetIsInput) {
29017
-
29017
+ if (layoutRequiresHandling && !targetIsInput && !isFocusAlreadyOnInput) {
29018
29018
  // Focus the first input
29019
29019
  this.inputList[0].focus();
29020
29020
  }
@@ -28948,9 +28948,9 @@ class AuroDatePicker extends AuroElement$1 {
28948
28948
 
28949
28949
  // Determine if the target is an input element
28950
28950
  const targetIsInput = initTarget.tagName === 'INPUT';
28951
+ const isFocusAlreadyOnInput = this.inputList.includes(this.shadowRoot.activeElement);
28951
28952
 
28952
- if (layoutRequiresHandling && !targetIsInput) {
28953
-
28953
+ if (layoutRequiresHandling && !targetIsInput && !isFocusAlreadyOnInput) {
28954
28954
  // Focus the first input
28955
28955
  this.inputList[0].focus();
28956
28956
  }
@@ -28948,9 +28948,9 @@ class AuroDatePicker extends AuroElement$1 {
28948
28948
 
28949
28949
  // Determine if the target is an input element
28950
28950
  const targetIsInput = initTarget.tagName === 'INPUT';
28951
+ const isFocusAlreadyOnInput = this.inputList.includes(this.shadowRoot.activeElement);
28951
28952
 
28952
- if (layoutRequiresHandling && !targetIsInput) {
28953
-
28953
+ if (layoutRequiresHandling && !targetIsInput && !isFocusAlreadyOnInput) {
28954
28954
  // Focus the first input
28955
28955
  this.inputList[0].focus();
28956
28956
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem-dev/auro-formkit",
3
- "version": "0.0.0-pr624.111",
3
+ "version": "0.0.0-pr624.112",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {