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!: TimePicker/MonthPickerにtypeを指定できないようにする #5051

Merged
merged 1 commit into from
Oct 24, 2024

Conversation

zoshigayan
Copy link
Contributor

@zoshigayan zoshigayan commented Oct 24, 2024

関連URL

概要

  • 従来の型定義だと TimePicker / MonthPickerinput 要素に付与可能なすべての属性をpropsとして受け取ります
  • その結果 <TimePicker type="date" /> といった意図のわからない指定が可能になっていました
    • ランタイムでは内部的に指定されている type=time が勝つので当該指定をしても挙動は変わりません
    • あくまで「型定義上は可能」という話
  • TimePicker は既にコンポーネントとして提供されているため一応BREAKING CHANGEという扱いにしています

変更内容

  • PickerProps から type を除外しました

確認方法

  • TimePicker / MonthPickertype 属性を指定すると型検査でエラーとなること

@zoshigayan zoshigayan self-assigned this Oct 24, 2024
Copy link

pkg-pr-new bot commented Oct 24, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/kufu/smarthr-ui@5051

commit: 143b5db

@zoshigayan zoshigayan changed the title BREAKING CHANGE: TimePicker/MonthPickerにtypeを指定できないようにする fix!: TimePicker/MonthPickerにtypeを指定できないようにする Oct 24, 2024
@zoshigayan zoshigayan marked this pull request as ready for review October 24, 2024 01:03
@zoshigayan zoshigayan requested a review from a team as a code owner October 24, 2024 01:03
@zoshigayan zoshigayan requested review from Qs-F and masa0527 and removed request for a team October 24, 2024 01:03
Copy link
Collaborator

@uknmr uknmr left a comment

Choose a reason for hiding this comment

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

LGTM!

@zoshigayan
Copy link
Contributor Author

ありがとうございます!!

@zoshigayan zoshigayan merged commit c109eff into master Oct 24, 2024
13 of 15 checks passed
@zoshigayan zoshigayan deleted the remove-input-type-from-picker-props branch October 24, 2024 01:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants