@ni/nimble-components 29.3.0 → 29.3.1

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.
@@ -16278,7 +16278,7 @@
16278
16278
 
16279
16279
  /**
16280
16280
  * Do not edit directly
16281
- * Generated on Thu, 06 Jun 2024 17:16:12 GMT
16281
+ * Generated on Fri, 07 Jun 2024 14:57:34 GMT
16282
16282
  */
16283
16283
 
16284
16284
  const Information100DarkUi = "#a46eff";
@@ -59734,6 +59734,7 @@ img.ProseMirror-separator {
59734
59734
  * @internal
59735
59735
  */
59736
59736
  slottedOptionsChanged(prev, next) {
59737
+ const value = this.value;
59737
59738
  this.options.forEach(o => {
59738
59739
  const notifier = Observable.getNotifier(o);
59739
59740
  notifier.unsubscribe(this, 'value');
@@ -59747,8 +59748,6 @@ img.ProseMirror-separator {
59747
59748
  notifier.unsubscribe(this, 'listOptions');
59748
59749
  });
59749
59750
  const options = this.getSlottedOptions(next);
59750
- // reset selectedIndex in case the selected option was removed or reordered
59751
- this.selectedIndex = options.findIndex(o => o.selected);
59752
59751
  super.slottedOptionsChanged(prev, options);
59753
59752
  options.forEach(o => {
59754
59753
  const notifier = Observable.getNotifier(o);
@@ -59768,6 +59767,9 @@ img.ProseMirror-separator {
59768
59767
  // We need to force an update to the filteredOptions observable
59769
59768
  // (by calling 'filterOptions()) so that the template correctly updates.
59770
59769
  this.filterOptions();
59770
+ if (value) {
59771
+ this.value = value;
59772
+ }
59771
59773
  }
59772
59774
  /**
59773
59775
  * @internal