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

fix(frontend): ユーザー・ノート検索の確定挙動をformタグ経由で行うように #14572

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

kakkokari-gtyih
Copy link
Contributor

@kakkokari-gtyih kakkokari-gtyih commented Sep 18, 2024

What

type=buttonを指定しないとsubmitのボタンとして扱われるのでそのへんの改変も含んでいる

Why

Fix #14570

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@github-actions github-actions bot added the packages/frontend Client side specific issue/PR label Sep 18, 2024
@syuilo
Copy link
Member

syuilo commented Sep 18, 2024

うーーーーむ

@syuilo
Copy link
Member

syuilo commented Sep 18, 2024

formに頼るのは無理が生じてきそう(formは古典的な文書寄りのHTML向けの設計だけど、Misskey WebはWebアプリ寄りのため)

@syuilo
Copy link
Member

syuilo commented Sep 18, 2024

実際このPRでもボタンとは言い難いものをbuttonにしなければいけなくなっているし

@syuilo
Copy link
Member

syuilo commented Sep 18, 2024

あと使えるタグに制限が生じそうな気もする

@syuilo
Copy link
Member

syuilo commented Sep 18, 2024

そこら辺はformタグの仕様を調べたりする必要があるけど、めんどくさいから大人しくdiv使っといてJSで制御した方が良さそう

@kakkokari-gtyih
Copy link
Contributor Author

実際このPRでもボタンとは言い難いものをbuttonにしなければいけなくなっているし

MkFoldableSectionのボタンの場所を変えたのはどっちかというとフォーカスの当たり方の調整
(単にボタンの誤作動を防ぐだけでいいのならもともとbuttonだったところにtype=buttonを入れるだけで良い)

@kakkokari-gtyih
Copy link
Contributor Author

大人しくdiv使っといてJSで制御した方が良さそう

スマホのキーボードの確定ボタンに対応するイベントあるのかしら

@syuilo
Copy link
Member

syuilo commented Sep 18, 2024

enterイベントだわね

@kakkokari-gtyih
Copy link
Contributor Author

enterイベントだわね

元issueによるとそれが動作しないとのことなのでこういうアプローチにしたんだけど…

@syuilo
Copy link
Member

syuilo commented Sep 18, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages/frontend Client side specific issue/PR
Projects
None yet
2 participants