fix: don't set aria-activedescendant immediately on autocomplete textarea (#1513)
This commit is contained in:
parent
d0b7f981d2
commit
0df6552f83
|
@ -3,10 +3,10 @@
|
||||||
class="compose-box-input compose-box-input-realm-{realm}"
|
class="compose-box-input compose-box-input-realm-{realm}"
|
||||||
placeholder="What's on your mind?"
|
placeholder="What's on your mind?"
|
||||||
aria-describedby="compose-box-input-description-{realm}"
|
aria-describedby="compose-box-input-description-{realm}"
|
||||||
aria-owns="compose-autosuggest-list-{realm}"
|
aria-owns="{autosuggestShownForThisInput ? `compose-autosuggest-list-${realm}` : undefined}"
|
||||||
aria-expanded={autosuggestShownForThisInput}
|
aria-expanded={autosuggestShownForThisInput}
|
||||||
aria-autocomplete="both"
|
aria-autocomplete="both"
|
||||||
aria-activedescendant="{autosuggestShownForThisInput ? `compose-autosuggest-active-item-${realm}` : ''}"
|
aria-activedescendant="{autosuggestShownForThisInput ? `compose-autosuggest-active-item-${realm}` : undefined}"
|
||||||
ref:textarea
|
ref:textarea
|
||||||
bind:value=rawText
|
bind:value=rawText
|
||||||
on:blur="onBlur()"
|
on:blur="onBlur()"
|
||||||
|
|
Loading…
Reference in a new issue