mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 22:17:40 +08:00
fix(range): update range ratio when new min/max are passed (#15512)
fixes #15511
This commit is contained in:

committed by
Manu MA

parent
db35af21f2
commit
f62601fb0a
@ -68,11 +68,23 @@ export class Range {
|
||||
* Minimum integer value of the range. Defaults to `0`.
|
||||
*/
|
||||
@Prop() min = 0;
|
||||
@Watch('min')
|
||||
protected minChanged() {
|
||||
if (!this.noUpdate) {
|
||||
this.updateRatio();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Maximum integer value of the range. Defaults to `100`.
|
||||
*/
|
||||
@Prop() max = 100;
|
||||
@Watch('max')
|
||||
protected maxChanged() {
|
||||
if (!this.noUpdate) {
|
||||
this.updateRatio();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* If true, a pin with integer value is shown when the knob
|
||||
|
Reference in New Issue
Block a user