palantir/blueprint

Add selectAllOnFocus prop to DateInput component

Open

#4,530 opened on Feb 17, 2021

View on GitHub
 (0 comments) (0 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
P2Package: datetimeType: feature requesthelp wanted

Description

Environment

  • Package version(s): latest
  • Browser and OS versions: all

Feature request

The DateInput component has the missing ability to select all text inside text input. I found this behavior very usable. As i can see DateRangeInput has selectAllOnFocus prop, which i think must be presented and in DateInput too.

BTW. I don’t know but maybe it would be better to add prop which controls this behavior directly to InputGroup component

Contributor guide