Skip to content

[EuiDualRange] Bug when passing big integers as tick values #4765

@elizabetdev

Description

@elizabetdev

As part of the review on elastic/kibana#96791, I noticed that the EuiDualRange doesn't fill 100% of the width when big integers tick values are passed.

I run some tests here: https://codesandbox.io/s/holy-rgb-rgjg2?file=/index.js.

Screenshot 2021-04-28 at 14 34 49

As we can see:

  • The top timeslider gets the full width and the one from the bottom doesn't.
  • The one from the top has tick values like value: 20. The one from the bottom has tick values like value: 1619049600000.

It seems that the component doesn't handle properly bigger integers.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions