Skip to content

[Bug]: PrintButton format property typing #4446

@LukasLohoff

Description

@LukasLohoff

Current Behavior

Passing format='pdf' to the PrintButton results in a typescript error (Type 'string' is not assignable to type 'undefined')

e.g.

<PrintButton
  format='pdf'
  [...]
/>

See https://github.com/terrestris/react-geo/blob/main/src/Button/PrintButton/PrintButton.tsx#L13

Expected Behavior

There should be no error when providing a valid type.

Steps To Reproduce

<PrintButton
format='pdf'
[...]
/>

Version

32.5.0

What browsers are you seeing the problem on?

No response

Relevant log output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions