Ayato-kosaka / spelieve

1 stars 0 forks source link

【BUG】代表プランの時間を変更すると日付が変わってしまう。 #961

Closed Ayato-kosaka closed 5 months ago

Ayato-kosaka commented 6 months ago

Bug report

Describe the bug

A clear and concise description of what the bug is.

To Reproduce

Steps to reproduce the behavior:

  1. 新しい予定作成
  2. 日付変更
  3. 時間を直接入力で変更
  4. 日付が本日日付に変わっている。

Expected behavior

A clear and concise description of what you expected to happen.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

Additional context

Add any other context about the problem here.


Solution result

Cause (バグの原因)

react-datepicker#DatePicker の仕様で、TimeFiled を直接入力すると onChange の date が本日日付で発火することが判明

How to fix (どのようにして解決したか)

props.onChange に渡す Date の変更項目を mode で分岐することで詳細化する。

Roll Out

他機能への影響範囲と対応計画を記載する 実装を詳細化したため、多機能影響はない想定。