formio / formio.js

JavaScript powered Forms with JSON Form Builder
https://formio.github.io/formio.js
MIT License
1.83k stars 1.04k forks source link

FIO 8151: allow for reference attr name #5567

Closed brendanbond closed 2 months ago

brendanbond commented 2 months ago

Link to Jira Ticket

https://formio.atlassian.net/browse/FIO-8151

Description

Form.io renders forms by attaching to component's internal "ref" attributes. However, in React e.g., the "ref" attribute is a reserved keyword for a similar functionality that allows React access to DOM elements. In order to use override component templates using JSX (and potentially other paradims such as Web Components), we'll need the reference attribute name to be configurable.

Dependencies

n/a

How has this PR been tested?

All existing automated tests pass. I'm looking into testing the renders

Checklist: