cern-sis / react-formule

User-friendly, extensible form builder for React based on JSON Schema and RJSF
https://cern-sis.github.io/react-formule/
MIT License
10 stars 4 forks source link

feat(form): add touch screen support for dnd #58

Closed miguelgrc closed 2 months ago

miguelgrc commented 3 months ago

Closes #50

Swapped react-dnd-html5-backend with react-dnd-multi-backend. The alternatives proposed in #50 are not ideal:

The chosen solution also has its drawbacks (a slightly bigger bundle size) but it's the simplest and maintains the dnd functionality on all devices, which is the most comfortable way of using formule.

Something else that could be done in this direction is to have the dnd dependencies as optional peer dependencies and let users install them only if they want to use the dnd, but this would be trickier to set up.