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(Popover): fix hover behavior conflicts #7170

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

BlackySoul
Copy link
Contributor

  • Unit-тесты

Описание

Если мы задавали trigger={['focus', 'click', 'hover']}, то событие mouseLeave игнорировалось в случае, если триггером выступал focus или click, это приводило к путающему поведению:

Было Стало
2024-07-10.22.51.13.mov
2024-07-10.22.53.08.mov

Изменения

Убираем игнор focus/click событий, изменяем тесты на проверку взаимозаменяющего поведения

@BlackySoul BlackySoul added this to the v6.2.2 milestone Jul 10, 2024
@BlackySoul BlackySoul self-assigned this Jul 10, 2024
@BlackySoul BlackySoul requested a review from a team as a code owner July 10, 2024 16:01
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Jul 10, 2024
Copy link
Contributor

size-limit report 📦

Path Size
JS 372.6 KB (-0.02% 🔽)
JS (gzip) 114.03 KB (-0.01% 🔽)
JS (brotli) 93.84 KB (-0.06% 🔽)
JS import Div (tree shaking) 1.42 KB (0%)
CSS 300.04 KB (0%)
CSS (gzip) 38.28 KB (0%)
CSS (brotli) 30.83 KB (0%)

Copy link

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

e2e tests

Playwright Report

Copy link
Contributor

👀 Docs deployed

Commit 022f180

Copy link

codecov bot commented Jul 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.07%. Comparing base (138bc01) to head (022f180).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7170      +/-   ##
==========================================
- Coverage   84.07%   84.07%   -0.01%     
==========================================
  Files         359      359              
  Lines       10909    10908       -1     
  Branches     3591     3590       -1     
==========================================
- Hits         9172     9171       -1     
  Misses       1737     1737              
Flag Coverage Δ
unittests 84.07% <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.

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 merged commit 67e9ad5 into master Jul 16, 2024
26 checks passed
@inomdzhon inomdzhon deleted the blackysoul/fix_multiple_popover_triggers branch July 16, 2024 17:01
vkcom-publisher pushed a commit that referenced this pull request Jul 16, 2024
h2. Описание

Если мы задавали `trigger={['focus', 'click', 'hover']}`, то событие `mouseLeave` игнорировалось в случае, если триггером выступал `focus` или `click`, это приводило к путающему поведению:

| Было  | Стало |
| ------------- | ------------- |
| <video src="https://github.com/VKCOM/VKUI/assets/7431217/1b35c96e-939a-49df-8bd9-150b51ee1413">  | <video src="https://github.com/VKCOM/VKUI/assets/7431217/51d86a43-e3e3-4a02-8860-8d793aec2107">|

h2.  Изменения

Убираем игнор `focus`/`click` событий, изменяем тесты на проверку взаимозаменяющего поведения
@vkcom-publisher
Copy link
Contributor

v6.2.2 🎉

@inomdzhon inomdzhon changed the title fix(Popover): fix multiple trigger behavior fix(Popover): fix trigger behavior conflicts Jul 23, 2024
@inomdzhon inomdzhon changed the title fix(Popover): fix trigger behavior conflicts fix(Popover): fix hover behavior conflicts Jul 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants