FilterEditor: Add a hidden submit button to the start of the form's markup

When pushing enter our JS mimics what a browser would do. And that is
pushing the first submit button found in the form. Without this, that's
a delete button of the first logical junction. (the root condition)

fixes #3454
This commit is contained in:
Johannes Meyer 2018-07-06 10:41:49 +02:00
parent 04913f3699
commit 6e6251604b
1 changed files with 1 additions and 0 deletions

View File

@ -778,6 +778,7 @@ class FilterEditor extends AbstractWidget
. '<form action="'
. Url::fromRequest()
. '" class="editor" method="POST">'
. '<input type="submit" name="submit" value="Apply" style="display:none;"/>'
. '<ul class="tree"><li>'
. $this->renderFilter($this->filter)
. '</li></ul>'