ngx-permissions icon indicating copy to clipboard operation
ngx-permissions copied to clipboard

Strategies to disable a button no longer works

Open GitHubish opened this issue 5 years ago • 2 comments

The strategies for disabling buttons when a user does not have permission doesn't seem to work anymore recently. Maybe since the Angular 9.1.0 release?

I've been following the whole wiki about this feature, and where it's been working for over a year now I found that my application had a regression.

Wiki Disable Element

I've tried to figure out where the problem could have come from, but I don't see it.

Do you have the same problem? Thanks

GitHubish avatar Apr 10 '20 07:04 GitHubish

If I replace nextSibling with previousSibling it points to my button which should be disabled and it works. Finally I have the impression that it's mostly the Readme that should be edited. I'll let you see if it's a regression or the desired behavior.

Hopefully this will help people who have the same concerns as me.

GitHubish avatar Apr 10 '20 07:04 GitHubish

Hi @GitHubish Thank You. I will leave this open maybe it will help people. If this behaviour will still be in the future(they can change it). I will change wiki :-)

AlexKhymenko avatar Apr 14 '20 13:04 AlexKhymenko