@momentum-design/components 0.127.2 → 0.127.4
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.
|
@@ -276,7 +276,7 @@ class Select extends ListNavigationMixin(CaptureDestroyEventForChildElement(Auto
|
|
|
276
276
|
// when selected, check if there is any other option is a selected option,
|
|
277
277
|
// first preference should always be given to the `selected` attribute.
|
|
278
278
|
// if there is no selected option, then reset it to placeholder or first option
|
|
279
|
-
if (firstSelectedOption) {
|
|
279
|
+
if (firstSelectedOption && firstSelectedOption !== this.selectedOption) {
|
|
280
280
|
this.setSelectedOption(firstSelectedOption);
|
|
281
281
|
}
|
|
282
282
|
else {
|
|
@@ -663,13 +663,13 @@ class Select extends ListNavigationMixin(CaptureDestroyEventForChildElement(Auto
|
|
|
663
663
|
>
|
|
664
664
|
${(_f = (_e = this.selectedOption) === null || _e === void 0 ? void 0 : _e.label) !== null && _f !== void 0 ? _f : this.placeholder}
|
|
665
665
|
</mdc-text>
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
666
|
+
<div part="icon-container">
|
|
667
|
+
<mdc-icon
|
|
668
|
+
size="1"
|
|
669
|
+
length-unit="rem"
|
|
670
|
+
name="${this.displayPopover ? ARROW_ICON.ARROW_UP : ARROW_ICON.ARROW_DOWN}"
|
|
671
|
+
></mdc-icon>
|
|
672
|
+
</div>
|
|
673
673
|
</div>
|
|
674
674
|
<input
|
|
675
675
|
id="${this.inputId}"
|