Skip to content

Hitting escape in a drawer saves the drawer, instead of canceling edits. #21

@jelleroorda

Description

@jelleroorda

Bug Description

Hitting the escape key to close the drawer will still persist data inside the drawer. Since it works with the vue store, I am not sure if this is just ‘how it works’, or whether it would be possible to implement. I think it's possible since this is similar how editing blueprints works in Statamic (canceling, escape or clicking outside is the same):

Schermopname.2021-09-03.om.14.23.54.mov

How to Reproduce

Edit something and see that it actually updated the values, instead of canceling them.

Extra Detail

Schermopname.2021-09-03.om.14.24.19.mov

Environment

Statamic 3.2.2 Pro
Laravel 8.58.0
PHP 8.0.6
edalzell/blade-directives 3.5
handmadeweb/buildamic dev-main

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions