fix(pickers): repair data-slot selectors and align demos with the baseline
The CSS port prefixed data-slot attribute values with hv-, so the compiled selectors never matched the DOM and the ComboBox trigger chevron never rotated. Only class names get the prefix; slot values stay byte-identical. Also commit typed text as the value when allowsCustomValue finds no record, restore the baseline search-field shell in all 24 Autocomplete demos, and correct both doc pages against the pinned upstream sources.
This commit is contained in:
@@ -70,7 +70,9 @@ function submitAria(event: Event) {
|
||||
<FieldError />
|
||||
</ComboBox>
|
||||
<Button class="w-fit" type="submit">提交</Button>
|
||||
<p v-if="nativeMessage" class="text-sm text-muted">{{ nativeMessage }}</p>
|
||||
<p v-if="nativeMessage" class="text-sm text-muted" role="status">
|
||||
{{ nativeMessage }}
|
||||
</p>
|
||||
</Form>
|
||||
<Form class="flex w-[256px] flex-col gap-4" @submit="submitAria">
|
||||
<ComboBox
|
||||
@@ -101,7 +103,9 @@ function submitAria(event: Event) {
|
||||
<FieldError />
|
||||
</ComboBox>
|
||||
<Button class="w-fit" type="submit">提交</Button>
|
||||
<p v-if="ariaMessage" class="text-sm text-muted">{{ ariaMessage }}</p>
|
||||
<p v-if="ariaMessage" class="text-sm text-muted" role="status">
|
||||
{{ ariaMessage }}
|
||||
</p>
|
||||
</Form>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user