`DashboardMiscOptions.trigger` requires `string`, but `findAllDOMElements` accepts `Node` as well
mbolli opened this issue · comments
Michael Bolli commented
Initial checklist
- I understand this is a bug report and questions should be posted in the Community Forum
- I searched issues and couldn’t find anything (or linked relevant results below)
Link to runnable example
No response
Steps to reproduce
This is less of a bug and more of a correct typing-issue.
The trigger
field on DashboardMiscOptions
requires string
:
But processing calls findAlDOMElements(this.opts.trigger)
:
Which allows DOM Elements as well:
uppy/packages/@uppy/utils/src/findAllDOMElements.ts
Lines 13 to 24 in c45407d
Expected behavior
That the trigger
field mirrors the accepted types of findAllDOMElements()
.
Actual behavior
The trigger
field requires an optional string
.