-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Material-Ui Disable element not working #115
Comments
@danyhiol Maybe You can find better solution. And post the answer here :-) |
@AlexKhymenko thanks for your answer. I've already checked that. Apart from using
wish forces you to have it in the component itself and not in the |
@danyhiol Yes with native it works with material unfortunately not. Maybe i can come up some solutions cause material is widespread. |
So here is my workaround. I found that it was marking the container as display:none. I'm using Metronic material template and found that the ng-container was marked as display:none, even when the user had permissions. Wrapping an extra div made my button appear and disappear correctly. Although I had to then apply the css normally provided my the mPortletHeadTools to this div wrapper.
|
I'm submitting a...
Current behavior
When using material design, disable element is not working.
Expected behavior
Use material design library and have a central permission manager, where button can directly be enabled or disabled based on user permission. The default behaviour will then be disable/enable not show/hide.
Minimal reproduction of the problem with instructions
Environment
The text was updated successfully, but these errors were encountered: