formio.js
formio.js copied to clipboard
[BUG] Setting the 'documentation' property on a custom control builderInfo has been broken at some point after 4.11.3
Environment
Please provide as many details as you can:
- Hosting type
- [] Form.io
- [x] Local deployment
- Version: 4.14.8
- Formio.js version: 4.14.8
- Frontend framework: any JS
- Browser: chrome
- Browser version: latest
Steps to Reproduce
- Create a custom component and set the documentation property in the builderInfo
- In the form builder drag in that custom component
- Try to use the help link
Expected behavior
The help link I set in documentation is navigated to
Observed behavior
It prepends "https://help.form.io" to the link you try and set
Example
I can confirm this bug does not occur in 4.11.3 (running that locally right now to check) but when updating to a later version the prepend bug has been introduced.
static get builderInfo() {
return {
documentation: 'www.google.com',
};
}
This then results in the help link becoming:
