Thank you @a.dmitriiev for the fix. The preview loop is working fine now, but for the validation error messages, they are still showing after closing the edit form.
Steps to reproduce:
- Enable automatic preview
- Edit Headline paragraph
- Remove all characters from Headline field
- Close edit form
- Go to config page
- The validation error message is shown there
eucr → created an issue.
#35 also works, thank you!
Event listeners have been modified. Now this is using formUpdated
, autocompleteclose
and onDrop
.
This issue needs some work:
- Remove external debounce library and use Drupal one
- Change some event listeners and add more suitable ones
- Determine if current enable/disable automatic preview workflow is the best one
eucr → created an issue.