signalpoint / DrupalGap

An application development kit for Drupal websites.
https://www.drupalgap.org
GNU General Public License v2.0
232 stars 185 forks source link

dg.render() won't render a form, unless the form is wrapped in an element #993

Open signalpoint opened 6 years ago

signalpoint commented 6 years ago

Doesn't work

  dg.modal({
    _theme: 'form',
    _id: 'SearchControlsForm'
  });

Works

  var element = {};
  element.controls = {
    _theme: 'form',
    _id: 'SearchControlsForm'
  };
  dg.modal(element);

This could have to do with the Form being loaded in a modal though...