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(CustomSelect): fix custom select cursor updating #7508

Merged

Conversation

EldarMuhamethanov
Copy link
Contributor

@EldarMuhamethanov EldarMuhamethanov commented Sep 2, 2024


  • Release notes

Описание

Сейчас нельзя изменять положение курсора с помощью мыши в searchable CustomSelect-е. Проблема в том, что при обработке mousedown происходит preventDefault всегда когда input в фокусе. Нужно доработать проверку так, что при наличии фокуса и клике в input не происходил preventDefault

Изменения

Доработал проверку в обработчике mouseDown, чтобы можно было менять положение курсора мышью
Обработал кейс, чтобы при фокуса в поле просходило выделение всего текста

Release notes

Исправления

  • CustomSelect: поправлена проблема с изменением позиции курсора с помощью мыши

@EldarMuhamethanov EldarMuhamethanov added this to the v6.5.3 milestone Sep 2, 2024
@EldarMuhamethanov EldarMuhamethanov self-assigned this Sep 2, 2024
@EldarMuhamethanov EldarMuhamethanov requested a review from a team as a code owner September 2, 2024 11:14
@github-actions github-actions bot added the patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча label Sep 2, 2024
Copy link
Contributor

github-actions bot commented Sep 2, 2024

size-limit report 📦

Path Size
JS 380.85 KB (+0.04% 🔺)
JS (gzip) 115.3 KB (+0.03% 🔺)
JS (brotli) 94.68 KB (+0.1% 🔺)
JS import Div (tree shaking) 1.45 KB (0%)
CSS 309.06 KB (0%)
CSS (gzip) 39.64 KB (0%)
CSS (brotli) 31.86 KB (0%)

Copy link

codesandbox-ci bot commented Sep 2, 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 Sep 2, 2024

e2e tests

Playwright Report

Copy link
Contributor

github-actions bot commented Sep 2, 2024

👀 Docs deployed

Commit 7c78834

Copy link

codecov bot commented Sep 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.17%. Comparing base (7a9018e) to head (7c78834).
Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7508   +/-   ##
=======================================
  Coverage   95.17%   95.17%           
=======================================
  Files         384      384           
  Lines       11212    11215    +3     
  Branches     3674     3676    +2     
=======================================
+ Hits        10671    10674    +3     
  Misses        541      541           
Flag Coverage Δ
unittests 95.17% <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

@andrey-medvedev-vk andrey-medvedev-vk left a comment

Choose a reason for hiding this comment

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

Линтер в CI где-то ругается.

@BlackySoul BlackySoul removed this from the v6.5.3 milestone Sep 2, 2024
Copy link
Contributor

@andrey-medvedev-vk andrey-medvedev-vk left a comment

Choose a reason for hiding this comment

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

🥇

@andrey-medvedev-vk andrey-medvedev-vk merged commit e74d957 into master Sep 2, 2024
28 checks passed
@andrey-medvedev-vk andrey-medvedev-vk deleted the e.muhamethanov/7504/fix-custom-select-cursor-using branch September 2, 2024 13:09
vkcom-publisher pushed a commit that referenced this pull request Sep 2, 2024
Сейчас нельзя изменять положение курсора с помощью мыши в searchable CustomSelect-е. Проблема в том, что при обработке mousedown происходит preventDefault всегда когда input  в фокусе. Нужно доработать проверку так, что при наличии фокуса и клике в input не происходил preventDefault

Обработали кейс, чтобы при фокуса в поле просходило выделение всего текста
SevereCloud added a commit that referenced this pull request Sep 18, 2024
SevereCloud added a commit that referenced this pull request Sep 19, 2024
* Revert "fix(CustomSelect): fix custom select cursor updating (#7508)"

This reverts commit dd77217.

* Revert "fix(CustomSelect): a11y allow NVDA to read selected option (#7235)"

This reverts commit 13258fe.
vkcom-publisher pushed a commit that referenced this pull request Sep 19, 2024
* Revert "fix(CustomSelect): fix custom select cursor updating (#7508)"

This reverts commit dd77217.

* Revert "fix(CustomSelect): a11y allow NVDA to read selected option (#7235)"

This reverts commit 13258fe.
vkcom-publisher pushed a commit that referenced this pull request Sep 19, 2024
* Revert "fix(CustomSelect): fix custom select cursor updating (#7508)"

This reverts commit dd77217.

* Revert "fix(CustomSelect): a11y allow NVDA to read selected option (#7235)"

This reverts commit 13258fe.
SevereCloud added a commit that referenced this pull request Sep 24, 2024
* Revert "fix(CustomSelect): fix custom select cursor updating (#7508)"

This reverts commit dd77217.

* Revert "fix(CustomSelect): a11y allow NVDA to read selected option (#7235)"

This reverts commit 13258fe.
SevereCloud added a commit that referenced this pull request Sep 24, 2024
* Revert "fix(CustomSelect): fix custom select cursor updating (#7508)"

This reverts commit dd77217.

* Revert "fix(CustomSelect): a11y allow NVDA to read selected option (#7235)"

This reverts commit 13258fe.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
patch Автоматизация: PR продублируется в ветку последнего минорного релиза для выпуска патча
Projects
None yet
4 participants