palantir/blueprint

DateRangeInput placeholder not working

Open

#4,487 opened on Jan 20, 2021

View on GitHub
 (1 comment) (1 reaction) (0 assignees)TypeScript (2,167 forks)batch import
P2Package: datetimeType: enhancementhelp wanted

Repository metrics

Stars
 (20,263 stars)
PR merge metrics
 (Avg merge 43d 10h) (27 merged PRs in 30d)

Description

Environment

  • Package version(s): @blueprintjs/datetime 3.18.5
  • Operating System: macOS Big Sur Version 11.1
  • Browser name and version: Chrome Version 87.0.4280.141 (Official Build) (x86_64)

Code Sandbox

Link to a minimal repro: https://codesandbox.io/s/blueprint-sandbox-forked-rk722?file=/src/DatetimeExample.tsx

Steps to reproduce

Specify placeholder on DateRangeInput e.g. "Please enter date"

Actual behavior

Placeholders say "Start date" and "End date"

Expected behavior

Placeholders should be the specified string e.g. "Please enter date"

Possible solution

Since there are two fields, the placeholder should be [string, string] for the start date and end date respectively

Contributor guide