Skip to content

bugfix: block rendering if no data-src

Matthieu Fesselier requested to merge bugfix/no-render-solid-form into master

Related to applications/hubl#952

The widgetMixin makes a component render if it has no data-src attribute (for a solid-form-search for example). In the case of a solid-form with a bind-resource, it was also rendering, causing the dropdown to render too, and loading huge lists of users. Here is an example:

    <solid-form
      fields="user"
      range-user="https://api.community.startinblox.com/sources/users/"
      widget-user="solid-form-dropdown-autocompletion"
      no-render
    ></solid-form>

This MR fixes the issue by checking the noRender attribute first.

I also added the noRender capability to the solid-form-search as it does not uses the StoreMixin

Merge request reports