Skip to content

Unable to get date from DatePicker #498

Closed
@avalkowsky

Description

@avalkowsky

Description

I am trying to use DatePicker, however the docs forget to mention the most important thing about DatePicker (actually, it is the same for other input/input-like components, but for others I was able to make it work) :

  1. how to get date out of the DatePicker
  2. how to set date programmatically in the DatePicker

I tried to use onChange and value, but they did not work so the components renders but I cannot use the set date in any way:
<DatePicker onChange={(event) => onActiveToChange(event.target.value)} value={activeTo} />

Versions

"fiori-fundamentals": "^1.4.9",
"fundamental-react": "^0.5.0"

edit: I checked the source code carefully, but I don't see there any option to set and get the date selected on the DatePicker.

DISCLAIMER:
After triaging an issue, the fundamental-react team will see if it can be reproduced or confirmed. If more information is needed, the fundamental-react team will contact the author. Any issues awaiting responses from the author for more than 7 days will be closed. The author can re-open the issue at a later time if they can present the requested information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working / Issues in the codecontribution welcomeThe fix or enhancement is approved and you are invited to contribute to it

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions