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
1 changed files with 2 additions and 2 deletions

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()"