Skip to content

Dropdown animation - propagation issue (Vue3 related). #12

@robbykrlos

Description

@robbykrlos

This is a bug | feature request.

Prerequisites

  • Are you running the latest version?
  • Are you reporting to the correct repository?
    (enso is made of many specialized packages: https://github.com/laravel-enso)
  • Did you check the documentation?
  • Did you perform a cursory search?

Description

Another strange one on UI. The dropdown is now behaving strangely in some situations:

image
(picture taken while animation was fading in (just clicked the select)

As seen in this picture above, the dropdown menu is opened over the update button.

If you select something and relativity fast click on Update(to save the form) - it will still register the click on the menu item even if the ongoing animation is faded away the dropdown menu - and you do not (or barely) see there is a menu item you just clicked,

image
(initially the 'fff' option was selected, but if I click outside of the menu, the animation will be triggered to close the menu, but at the point that i'm seeing the "Update" button, i'm clicking it, it will just deselect my option 'fff', and now the dropdown value was deselected telling me I need to "Choose".

You can simulate this on your side too - if you change the role to an existing user,and then immediately click on password field (on the overlapping part with the role dropdown menu):

image

In a similar way, if you choose value "123" and immediately click update - it will actually appear that you have selected value 'fff' since that value is overlapping the Update button.

I have looked a bit towards this issue and traced it to:

  • enso-ui/dropdown (client/node_modules/@enso-ui/dropdown/src/bulma/Dropdown.vue)
  • enso-ui/transitions client/node_modules/@enso-ui/transitions/src/transitions/Mirror.vue
  • client/node_modules/animate.css/animate.css (maybe?)

This does not happen on version 4.8.2 (Vue 2). Behavior here : not registering the click on the fading away component, but not even on the element in the background (ex Update button)

Metadata

Metadata

Assignees

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