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:
parent
04913f3699
commit
6e6251604b
|
@ -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>'
|
||||
|
|
Loading…
Reference in New Issue