You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, thanks for this component! It's both complete and flexible 👍
I've stumble upon a behavior that, I think, should not happen. As this issue's title says, the beforeChange observable is subscribed even when the switch is in a disabled state.
That doesn't seem to make much sense, as a disabled switch should be... well... disabled and thus should not trigger any event.
I think this issue is caused by the lack of disabled check in this line:
I've seen that the onClick method does check for the disabled state, but in my case, it's too late since I'm doing some backend operation in the beforeChange observable ; my http call is made whatever my switch's disabled status is.
Hi!
First, thanks for this component! It's both complete and flexible 👍
I've stumble upon a behavior that, I think, should not happen. As this issue's title says, the
beforeChange
observable is subscribed even when the switch is in a disabled state.That doesn't seem to make much sense, as a disabled switch should be... well... disabled and thus should not trigger any event.
I think this issue is caused by the lack of
disabled
check in this line:ngx-ui-switch/src/lib/ui-switch/ui-switch.component.ts
Line 157 in 4995c55
which probably should be:
I've seen that the
onClick
method does check for thedisabled
state, but in my case, it's too late since I'm doing some backend operation in thebeforeChange
observable ; my http call is made whatever my switch'sdisabled
status is.(Might be related to #375 and/or #353)
The text was updated successfully, but these errors were encountered: