File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
core/src/components/range Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,10 @@ export class Range implements ComponentInterface {
109109 */
110110 @Prop ( ) min = 0 ;
111111 @Watch ( 'min' )
112- protected minChanged ( ) {
113- if ( ! isSafeNumber ( this . min ) ) {
112+ protected minChanged ( newValue : number ) {
113+ console . log ( 'minChanged' , newValue ) ;
114+ if ( ! isSafeNumber ( newValue ) ) {
115+ console . log ( 'minChanged not safe' , newValue ) ;
114116 this . min = 0 ;
115117 }
116118
@@ -124,8 +126,10 @@ export class Range implements ComponentInterface {
124126 */
125127 @Prop ( ) max = 100 ;
126128 @Watch ( 'max' )
127- protected maxChanged ( ) {
128- if ( ! isSafeNumber ( this . max ) ) {
129+ protected maxChanged ( newValue : number ) {
130+ console . log ( 'maxChanged' , newValue ) ;
131+ if ( ! isSafeNumber ( newValue ) ) {
132+ console . log ( 'maxChanged not safe' , newValue ) ;
129133 this . max = 100 ;
130134 }
131135
You can’t perform that action at this time.
0 commit comments