I have created a modal to quickly create a news page from the admin dropdown at the top, and in general it works fine, but when the input field (for the page title) has focus and 'Enter' is pressed, the modal is just hidden, like it is cancelled.
I'd expect either nothing to happen, or perhaps to have this function as the submit/next action - although that might also be undesirable.
A quick look through the event handlers in the browser devtools did not yet lead me to the code that's causing this.
This is the modal blueprint (user/blueprints/admin/pages/add_news_item.yaml):
I have created a modal to quickly create a news page from the admin dropdown at the top, and in general it works fine, but when the input field (for the page title) has focus and 'Enter' is pressed, the modal is just hidden, like it is cancelled.
I'd expect either nothing to happen, or perhaps to have this function as the submit/next action - although that might also be undesirable.
A quick look through the event handlers in the browser devtools did not yet lead me to the code that's causing this.
This is the modal blueprint (
user/blueprints/admin/pages/add_news_item.yaml
):And it is added via
user/config/plugins/admin.yaml
like this: