fix: don't set aria-activedescendant immediately on autocomplete textarea (#1513)

This commit is contained in:
Nolan Lawson 2019-09-22 16:19:51 -07:00 committed by GitHub
parent d0b7f981d2
commit 0df6552f83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,10 +3,10 @@
class="compose-box-input compose-box-input-realm-{realm}"
placeholder="What's on your mind?"
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-autocomplete="both"
aria-activedescendant="{autosuggestShownForThisInput ? `compose-autosuggest-active-item-${realm}` : ''}"
aria-activedescendant="{autosuggestShownForThisInput ? `compose-autosuggest-active-item-${realm}` : undefined}"
ref:textarea
bind:value=rawText
on:blur="onBlur()"