Skip to content
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

Disabled attribute doesnt work as expected #243

Open
shus-cbs opened this issue Dec 18, 2023 · 1 comment
Open

Disabled attribute doesnt work as expected #243

shus-cbs opened this issue Dec 18, 2023 · 1 comment

Comments

@shus-cbs
Copy link

When i put an [attr.disabled] attribute with the value 'disabled' or 'true' on the slider, the handle suggest that it disabled (cursor: not-allowed), but it is still possible to drag the handle to another position. Also clicking on the track changes the value of the slider.

I thought this might be an problem of my application, but in a clean Angular solution, without any other libraries it has the same behaviour.

I have tried ng2-nouislider version 1.8.3 and 2.0.0 in Angular 14 and 17

@ert78gb
Copy link

ert78gb commented Feb 25, 2024

I use the following hack in the main scss

[disabled] .noUi-connect {
    opacity: 0.5;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants