Skip to content

Impersonate dropdown-option in user management not working anymore #8401

Closed

Description

@nickvergessen

The last PR that broke/overwrote the action is from @juliushaertl #7790

I can work around this with changing: settings/js/users/users.js

$userListBody.on('click', '.toggleUserActions', function (event) {

to

$userListBody.on('click', '.toggleUserActions > .action', function (event) {

Then there is one from @danxuliu #7668
Which I can "fix" by removing the code block for closing
$(document).on('mouseup', function () {

I need help here. can someone fix this properly, so that https://github.com/nextcloud/impersonate/blob/45e1d490c92270a7f9d452cf3d8966b5f0bef32c/js/impersonate.js#L23 is triggered again?
(please change as little as possible in the impersonate.js because I have that revamped locally already)

Activity

  1. added
    1. to develop
    on Feb 16, 2018
  2. juliusknorr commented on Feb 16, 2018

    @juliusknorr
    Member

    You should be able workaround this in the impersonate app by using $('#userlist tbody').on('click', '.impersonate', function() { which will then work since the click event in bound after the $userListBody.on('click', '.toggleUserActions' and therefore executed before that.

    I'll have a more detailed look tomorrow, to see if we can add a proper fix to the server, so that event propagation will not be stopped there.

  3. MorrisJobke commented on Feb 24, 2018

    @MorrisJobke
    Member

    Fixed by #8416

  4. added this to the Nextcloud 14 milestone on Feb 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

1. to developbug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions