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

Mysterious tab stop in reaction picker and custom emoji picker #10744

Closed
MineCake147E opened this issue May 2, 2023 · 5 comments · Fixed by #10926
Closed

Mysterious tab stop in reaction picker and custom emoji picker #10744

MineCake147E opened this issue May 2, 2023 · 5 comments · Fixed by #10926
Labels
⚠️bug? This might be a bug

Comments

@MineCake147E
Copy link

MineCake147E commented May 2, 2023

💡 Summary

In reaction picker, after I pressed Tab key in the search box, this happens.
image
In custom emoji picker, after I pressed Tab key in the search box, this happens.
image

🥰 Expected Behavior

Such a green bar should not be selected.

🤬 Actual Behavior

Such a green bar appears.

📝 Steps to Reproduce

  1. Open any instance's web client on browser.
  2. Open the new note dialog.
  3. Open the custom emoji picker.
  4. Select the search box.
  5. Press the Tab key in your keyboard.
  6. See what happens. This appears no matter whether you typed anything in the search box or not, just at different places.

📌 Environment

Misskey version: 13.11.3
Your OS: Windows 10 Home 22H2 19045.2846
Your browser: Mozilla Firefox 112.0.2

@MineCake147E MineCake147E added the ⚠️bug? This might be a bug label May 2, 2023
@MineCake147E MineCake147E changed the title Mysterious tab stop in reaction picker and custom emoji picker (リアクションピッカー及びカスタム絵文字ピッカーの謎の仕切り線) Mysterious tab stop in reaction picker and custom emoji picker (リアクションピッカー及びカスタム絵文字ピッカーの検索窓でTabを押すと謎の仕切り線が表示される) May 2, 2023
@mappi-pr
Copy link
Contributor

mappi-pr commented May 2, 2023

Misskey v13.11.3、firefox 112.0.2 で再現しました。
Firefoxの仕様で、overflow: auto;が適用されている要素にtabでフォーカスが当たるようになっているようです。

.emojis に当たっている、overflow-yをhiddenにすることで事象が発生しなくなることを確認しております。
/misskey/packages/frontend/src/components/MkEmojiPicker.vue(L.529)のfixで解消するかもしれないです。
→overflow-yをhiddenにすると、カスタム絵文字エリアをスクロールできなくなるのでこの方法は不可でした。

image

@mappi-pr
Copy link
Contributor

mappi-pr commented May 2, 2023

もしかしたらFirefoxのBugかもしれないので、放置が正解かもしれないです…
https://bugzilla.mozilla.org/show_bug.cgi?id=1795509

@MineCake147E
Copy link
Author

最終更新が三ヶ月も前ですが本当に修正入るんでしょうか...

@mappi-pr
Copy link
Contributor

mappi-pr commented May 8, 2023

#10744 (comment)
コメントのUPDATEの通り、
overflow-yをhiddenにすると、カスタム絵文字エリアをスクロールできなくなる
ので、この方法はfixとしては不可でした。

cssはそのままに、tabindex="-1"とすることでフォーカスが当たらなくなることは確認しております。
image

ただし、Chromeなどのブラウザで動作検証した際に、カスタム絵文字ピッカーのスクロール動作時に再描画されない事象も発生するので、既知の事象かどうか追加検証が必要な状況です。
image

@mappi-pr
Copy link
Contributor

ただし、Chromeなどのブラウザで動作検証した際に、カスタム絵文字ピッカーのスクロール動作時に再描画されない事象も発生するので、既知の事象かどうか追加検証が必要な状況です。

修正前後の環境で改めて比較してみましたが、私の手元環境の問題のようなのでPR作成してみます。

@MineCake147E MineCake147E changed the title Mysterious tab stop in reaction picker and custom emoji picker (リアクションピッカー及びカスタム絵文字ピッカーの検索窓でTabを押すと謎の仕切り線が表示される) Mysterious tab stop in reaction picker and custom emoji picker Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⚠️bug? This might be a bug
Projects
None yet
2 participants