mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 04:08:32 +03:00
lol forgot to link the datalist
This commit is contained in:
parent
73e8bed5f0
commit
74a02ee388
1 changed files with 6 additions and 1 deletions
|
@ -336,9 +336,14 @@ function ShortcutForm({ type, lists, followedHashtags, onSubmit }) {
|
|||
name={name}
|
||||
placeholder={placeholder}
|
||||
required={type === 'text'}
|
||||
list={
|
||||
currentType === 'hashtag'
|
||||
? 'followed-hashtags-datalist'
|
||||
: null
|
||||
}
|
||||
/>
|
||||
{currentType === 'hashtag' && followedHashtags.length > 0 && (
|
||||
<datalist>
|
||||
<datalist id="followed-hashtags-datalist">
|
||||
{followedHashtags.map((tag) => (
|
||||
<option value={tag.name} />
|
||||
))}
|
||||
|
|
Loading…
Add table
Reference in a new issue