mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
chore(): sync with main:
This commit is contained in:
@ -320,7 +320,7 @@ export class Range implements ComponentInterface {
|
||||
this.ionKnobMoveEnd.emit({ value: ensureValueInBounds(this.value) });
|
||||
};
|
||||
private getValue(): RangeValue {
|
||||
const value = this.value || 0;
|
||||
const value = this.value ?? 0;
|
||||
if (this.dualKnobs) {
|
||||
if (typeof value === 'object') {
|
||||
return value;
|
||||
@ -703,6 +703,8 @@ const renderKnob = (
|
||||
'range-knob-pressed': pressed,
|
||||
'range-knob-min': value === min,
|
||||
'range-knob-max': value === max,
|
||||
'ion-activatable': true,
|
||||
'ion-focusable': true,
|
||||
}}
|
||||
style={knobStyle()}
|
||||
role="slider"
|
||||
|
Reference in New Issue
Block a user