formio.js icon indicating copy to clipboard operation
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

Open loneil opened this issue 3 years ago • 0 comments

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

  1. Create a custom component and set the documentation property in the builderInfo
  2. In the form builder drag in that custom component
  3. 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: image

loneil avatar Jul 18 '22 03:07 loneil