Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

作品投稿フォームで、タグ候補からタグを選択して直ちに追加できるようにする #34

Open
utgwkk opened this issue Jul 25, 2021 · 1 comment

Comments

@utgwkk
Copy link
Member

utgwkk commented Jul 25, 2021

やりたいこと

2021/7/25 時点では、単に <datalist> 要素を置いているだけなので、タグ候補からタグを選んでinputに文字列が入力されるだけで確定まではされない。
候補から選択して直ちにタグが追加されるとよさそう。タグの追加忘れも防げそう。

<datalist><option> 要素を選択したことを検知できるイベントがない? みたいなStackoverflowが出てきて不穏な感じがする。
javascript - Perform action when clicking HTML5 datalist option - Stack Overflow

難易度

★★★

  • まずライブラリの検討をするところから
@utgwkk
Copy link
Member Author

utgwkk commented Jul 25, 2021

あまりちゃんと見てないけど react-autosuggest とか使うとそれっぽいUIを実現できるのだろうか。
react-autocompleteっていうのもあったけどarchiveされてた。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant