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

patch(5.10-stable): pr6373 #6411

Conversation

mendrew
Copy link
Contributor

@mendrew mendrew commented Jan 19, 2024

Warning

базовая ветка 5.10-stable. В прошлом PR ошибся с тэгами и 5.10-stable не обновилась.

Важно

Это cherry-pick из #6373, из v6 в v5.

Описание

В старой реализации CustomSelect (v5.9.3) мы передавали required на div, тем самым он вообще не был задействован в обработке формы. В v5.10.0 мы поломали это поведение и required стал передаваться на input, используемый для поиска.

Исправляем это передавая required на спрятанный нативный селект.

…6408)

В старой реализации CustomSelect (v5.9.3) мы передавали required на div, тем самым он вообще не был задействован в обработке формы.
В v5.10.0 мы поломали это поведение и `required` стал передаваться на input, используемый для поиска. 

Исправляем это передавая `required` на спрятанный нативный селект.
@mendrew mendrew self-assigned this Jan 19, 2024
@github-actions github-actions bot added the v5 Автоматизация: PR продублируется в ветку v5 label Jan 19, 2024
Copy link
Contributor

github-actions bot commented Jan 19, 2024

size-limit report 📦

Path Size
JS 371.29 KB (+0.01% 🔺)
JS (gzip) 111.84 KB (+0.03% 🔺)
JS (brotli) 90.82 KB (+0.06% 🔺)
JS import Div (tree shaking) 2.74 KB (0%)
CSS 285.82 KB (0%)
CSS (gzip) 36.61 KB (0%)
CSS (brotli) 29.13 KB (0%)

Copy link
Contributor

e2e tests

Playwright Report

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.

Latest deployment of this branch, based on commit 82bc2f4:

Sandbox Source
VKUI TypeScript Configuration

Copy link
Contributor

github-actions bot commented Jan 19, 2024

👀 Docs deployed

Commit 82bc2f4

Copy link

codecov bot commented Jan 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (b90d272) 80.71% compared to head (82bc2f4) 80.73%.
Report is 1 commits behind head on 5.10-stable.

Additional details and impacted files
@@               Coverage Diff               @@
##           5.10-stable    #6411      +/-   ##
===============================================
+ Coverage        80.71%   80.73%   +0.01%     
===============================================
  Files              314      314              
  Lines            10840    10846       +6     
  Branches          3381     3386       +5     
===============================================
+ Hits              8750     8756       +6     
  Misses            2090     2090              
Flag Coverage Δ
unittests 80.73% <ø> (+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.

@mendrew mendrew marked this pull request as ready for review January 19, 2024 11:22
@mendrew mendrew requested a review from a team as a code owner January 19, 2024 11:22
@mendrew mendrew removed the v5 Автоматизация: PR продублируется в ветку v5 label Jan 19, 2024
@mendrew mendrew merged commit cef12a1 into 5.10-stable Jan 22, 2024
47 checks passed
@mendrew mendrew deleted the mendrew/v5.10-stable/patch/c9e8d12a95f203ff31928ab4eba7de907075d743 branch January 22, 2024 08:23
@inomdzhon inomdzhon changed the title [CustomSelect]: Pass required prop to native select instead of search input (#6373) (#6408) patch/5.10-stable/pr6373 Jan 26, 2024
@inomdzhon inomdzhon changed the title patch/5.10-stable/pr6373 patch(5.10-stable): pr6373 Jan 26, 2024
@inomdzhon inomdzhon added this to the v5.10.1 milestone Jan 26, 2024
@inomdzhon inomdzhon mentioned this pull request Jan 26, 2024
@inomdzhon inomdzhon removed this from the v5.10.1 milestone Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Bug]: required работает некорректно с CustomSelect
3 participants