Open nealeu opened 7 years ago
In ca-form, there is the following code in createdCallback, which causes the
createdCallback
this.render()
this.form = createElementLegacy(this, 'form', { action: '', method: 'post', novalidate: 'novalidate' }); // hook form submit event this.form.onsubmit = (e) => { cancelEvent(e); this.save(); };
This is annoying for testing and is visually annoying for the user.
If we move it to render, then we can conditionally do it once by testing this.form == null first.
render
this.form == null
Better would be to show a loading animation while there is a pending network operation on.
In ca-form, there is the following code in
createdCallback
, which causes the