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(ActionSheetItem): fix navigation by arrows in selectable ActionSheetItem #7216

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

EldarMuhamethanov
Copy link
Contributor


  • Unit-тесты

Описание

При навигации с помощью стрелочек по ActionSheetItems с selectable флагом закрывается ActionSheet

Изменения

  • Поисследовал проблему с тригером события click при навигации по элементам. Нашел вариант как можно ее обойти Bug: onClick firing when radio button is selcted with arrow keys facebook/react#7407. С помощью проверки можно отличить реальное событие клика.
  • Добавил обработку нажатия кнопки Enter, при котором происходит закрытие ActionSheet
  • Добавил тесты для нового функционала

@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner July 19, 2024 13:27
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jul 19, 2024
Copy link
Contributor

github-actions bot commented Jul 19, 2024

size-limit report 📦

Path Size
JS 374.02 KB (+0.05% 🔺)
JS (gzip) 114.6 KB (+0.07% 🔺)
JS (brotli) 94.29 KB (+0.08% 🔺)
JS import Div (tree shaking) 1.42 KB (0%)
CSS 301.52 KB (0%)
CSS (gzip) 38.45 KB (0%)
CSS (brotli) 30.97 KB (0%)

Copy link

codesandbox-ci bot commented Jul 19, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor

github-actions bot commented Jul 19, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Jul 19, 2024

👀 Docs deployed

Commit a2d29e5

Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Шикарно! 👏 👏 👏

Copy link

codecov bot commented Jul 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.08%. Comparing base (e7e4da4) to head (a2d29e5).
Report is 22 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7216      +/-   ##
==========================================
+ Coverage   84.07%   84.08%   +0.01%     
==========================================
  Files         361      362       +1     
  Lines       10937    10953      +16     
  Branches     3600     3605       +5     
==========================================
+ Hits         9195     9210      +15     
- Misses       1742     1743       +1     
Flag Coverage Δ
unittests 84.08% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@vkcom-publisher vkcom-publisher added the pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности label Jul 27, 2024
Copy link
Contributor

@inomdzhon inomdzhon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@mendrew mendrew left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💅

@inomdzhon inomdzhon removed the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jul 30, 2024
@inomdzhon inomdzhon merged commit 0d94b24 into master Jul 30, 2024
26 checks passed
@inomdzhon inomdzhon deleted the e.muhamethanov/6954/selectable-items-navigation-fix branch July 30, 2024 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr-needs-work Автоматизация: PR автоматически закроется через 14 дней при отсутствии активности
Projects
None yet
4 participants