mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 16:16:41 +08:00
chore(eslint): add strict-boolean-expressions rule (#25768)
This commit is contained in:
@ -351,7 +351,7 @@ export class PickerColumnCmp implements ComponentInterface {
|
||||
return;
|
||||
}
|
||||
|
||||
const selectedIndex = clamp(min, this.col.selectedIndex || 0, max);
|
||||
const selectedIndex = clamp(min, this.col.selectedIndex ?? 0, max);
|
||||
if (this.col.prevSelected !== selectedIndex || forceRefresh) {
|
||||
const y = selectedIndex * this.optHeight * -1;
|
||||
this.velocity = 0;
|
||||
|
||||
Reference in New Issue
Block a user