ui-components icon indicating copy to clipboard operation
ui-components copied to clipboard

Date value mismatch between GoAInputDateTime component and its onChange event

Open solittlework opened this issue 11 months ago • 1 comments

Info

Issue created by Paul Li

When using the GoAInputDateTime component, if you select anything except seconds, the seconds will be set to 00, despite sending the actual value in the onChange. After that, the onChange will start sending back 00 for the seconds value.

This issue only happens with React and only with goa components, no issue exists with goab components.

Code

const [date, setDate] = useState<Date | string>("");

<GoAInputDateTime
  name={'ADSP test'}
  value={date}
  onChange={(name, value: Date | string) => {
    setDate(value);
    console.log(value);
  }}
/>

Reproduction Steps

  1. Open the GoAInputDateTime component.
  2. Set the seconds to a value
  3. Close the component.

The seconds will be changed to 00, despite sending the value you set in the console log.

jam.dev

solittlework avatar Mar 27 '25 16:03 solittlework

@ArakTaiRoth Talk to Paul regarding the effect on the product

ArakTaiRoth avatar Apr 14 '25 20:04 ArakTaiRoth

:tada: This issue has been resolved in version 5.5.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

tzuge avatar May 16 '25 22:05 tzuge

The PR was merged to LTS

ArakTaiRoth avatar May 22 '25 21:05 ArakTaiRoth