We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ebcb1 commit e6935a7Copy full SHA for e6935a7
1st-gen/packages/picker/src/Picker.ts
@@ -867,7 +867,8 @@ export class PickerBase extends SizedMixin(SpectrumElement, {
867
// Only clear value when items exist with real values but none match.
868
// Preserve value if items are pending (lazy loaded, async render, incomplete upgrade).
869
const hasItemsWithValues = this.menuItems.some(
870
- (item) => item.value && item.value.trim() !== ''
+ (item) =>
871
+ item.value != null || item.getAttribute?.('value') != null
872
);
873
if (this.menuItems.length > 0 && hasItemsWithValues) {
874
this.value = '';
0 commit comments