-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(spinner): get paused attribute working and update tests
fixes #14811
- Loading branch information
1 parent
ba30671
commit 3ab1e2d
Showing
3 changed files
with
44 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.paused
is should be already a boolean, !! changes nothing, i am not sure i like this kind of defensive programming, we should trust the TS type system and the fact that the stencil's runtime should ensure this prop is always a boolean. If that's not the case, it means there is a bug to fix in the stencil runtime (the root of the problem), this change might just silent an existing bug in another part of the stack.I have tested, removing
!!
and it still works fine, I don't understand how this commit is fixing the issue.