Skip to content

Setting unitDisplay="narrow" Breaks on Safari #31

Description

Scenario:

  1. create a component eg and open in safari
   return ( <FormattedDuration seconds={50} format="{hours} {minutes} {seconds}" unitDisplay="narrow" />);
}```
2. observe error:
[Error] RangeError: style must be either "decimal", "percent", or "currency" 

3. remove unitDisplay="narrow"
4. observe working

Desired behaviour:
unitDisplay="narrow" working in Safari.

unitDisplay="narrow" does currently work in Chrome and Safari

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions