@@ -355,7 +355,6 @@ const FourRangeControl = memo( props => {
355
355
356
356
// Other necessary props for steps.
357
357
newProps . withInputField = false
358
- propsToPass . placeholder = ''
359
358
} else {
360
359
newProps . marks = undefined
361
360
}
@@ -527,6 +526,10 @@ const FourRangeControl = memo( props => {
527
526
onChange = { rangeOnChangeFirst }
528
527
allowReset = { false }
529
528
initialPosition = { ( ( ) => {
529
+ if ( isFourMarkMode . first ) {
530
+ return ''
531
+ }
532
+
530
533
if ( currentHoverState !== 'normal' ) {
531
534
return ''
532
535
}
@@ -540,6 +543,10 @@ const FourRangeControl = memo( props => {
540
543
return propsToPass . initialPosition
541
544
} ) ( ) }
542
545
placeholder = { ( ( ) => {
546
+ if ( isFourMarkMode . first ) {
547
+ return ''
548
+ }
549
+
543
550
if ( currentHoverState !== 'normal' ) {
544
551
return ''
545
552
}
@@ -549,7 +556,6 @@ const FourRangeControl = memo( props => {
549
556
} else if ( ( deviceType === 'Mobile' || deviceType === 'Tablet' ) && desktopHasValue . firstValue ) {
550
557
return unit === _unitDesktop ? firstValueDesktop : ''
551
558
}
552
-
553
559
return propsToPass . placeholder
554
560
} ) ( ) }
555
561
__nextHasNoMarginBottom
@@ -587,6 +593,10 @@ const FourRangeControl = memo( props => {
587
593
onChange = { rangeOnChangeVertical }
588
594
allowReset = { false }
589
595
initialPosition = { ( ( ) => {
596
+ if ( isFourMarkMode . top ) {
597
+ return ''
598
+ }
599
+
590
600
if ( currentHoverState !== 'normal' ) {
591
601
return ''
592
602
}
@@ -600,6 +610,10 @@ const FourRangeControl = memo( props => {
600
610
return propsToPass . initialPosition
601
611
} ) ( ) }
602
612
placeholder = { ( ( ) => {
613
+ if ( isFourMarkMode . top ) {
614
+ return ''
615
+ }
616
+
603
617
if ( currentHoverState !== 'normal' ) {
604
618
return ''
605
619
}
@@ -644,6 +658,10 @@ const FourRangeControl = memo( props => {
644
658
onChange = { rangeOnChangeHorizontal }
645
659
allowReset = { false }
646
660
initialPosition = { ( ( ) => {
661
+ if ( isFourMarkMode . left ) {
662
+ return ''
663
+ }
664
+
647
665
if ( currentHoverState !== 'normal' ) {
648
666
return ''
649
667
}
@@ -657,6 +675,10 @@ const FourRangeControl = memo( props => {
657
675
return propsToPass . initialPosition
658
676
} ) ( ) }
659
677
placeholder = { ( ( ) => {
678
+ if ( isFourMarkMode . left ) {
679
+ return ''
680
+ }
681
+
660
682
if ( currentHoverState !== 'normal' ) {
661
683
return ''
662
684
}
@@ -705,6 +727,10 @@ const FourRangeControl = memo( props => {
705
727
onChange = { rangeOnChangeTop }
706
728
allowReset = { false }
707
729
initialPosition = { ( ( ) => {
730
+ if ( isFourMarkMode . top ) {
731
+ return ''
732
+ }
733
+
708
734
if ( currentHoverState !== 'normal' ) {
709
735
return ''
710
736
}
@@ -718,6 +744,10 @@ const FourRangeControl = memo( props => {
718
744
return propsToPass . initialPosition
719
745
} ) ( ) }
720
746
placeholder = { ( ( ) => {
747
+ if ( isFourMarkMode . top ) {
748
+ return ''
749
+ }
750
+
721
751
if ( currentHoverState !== 'normal' ) {
722
752
return ''
723
753
}
@@ -764,6 +794,10 @@ const FourRangeControl = memo( props => {
764
794
onChange = { rangeOnChangeRight }
765
795
allowReset = { false }
766
796
initialPosition = { ( ( ) => {
797
+ if ( isFourMarkMode . right ) {
798
+ return ''
799
+ }
800
+
767
801
if ( currentHoverState !== 'normal' ) {
768
802
return ''
769
803
}
@@ -777,6 +811,10 @@ const FourRangeControl = memo( props => {
777
811
return propsToPass . initialPosition
778
812
} ) ( ) }
779
813
placeholder = { ( ( ) => {
814
+ if ( isFourMarkMode . right ) {
815
+ return ''
816
+ }
817
+
780
818
if ( currentHoverState !== 'normal' ) {
781
819
return ''
782
820
}
@@ -823,6 +861,10 @@ const FourRangeControl = memo( props => {
823
861
onChange = { rangeOnChangeBottom }
824
862
allowReset = { false }
825
863
initialPosition = { ( ( ) => {
864
+ if ( isFourMarkMode . bottom ) {
865
+ return ''
866
+ }
867
+
826
868
if ( currentHoverState !== 'normal' ) {
827
869
return ''
828
870
}
@@ -836,6 +878,10 @@ const FourRangeControl = memo( props => {
836
878
return propsToPass . initialPosition
837
879
} ) ( ) }
838
880
placeholder = { ( ( ) => {
881
+ if ( isFourMarkMode . bottom ) {
882
+ return ''
883
+ }
884
+
839
885
if ( currentHoverState !== 'normal' ) {
840
886
return ''
841
887
}
@@ -882,6 +928,10 @@ const FourRangeControl = memo( props => {
882
928
onChange = { rangeOnChangeLeft }
883
929
allowReset = { false }
884
930
initialPosition = { ( ( ) => {
931
+ if ( isFourMarkMode . left ) {
932
+ return ''
933
+ }
934
+
885
935
if ( currentHoverState !== 'normal' ) {
886
936
return ''
887
937
}
@@ -895,6 +945,10 @@ const FourRangeControl = memo( props => {
895
945
return propsToPass . initialPosition
896
946
} ) ( ) }
897
947
placeholder = { ( ( ) => {
948
+ if ( isFourMarkMode . left ) {
949
+ return ''
950
+ }
951
+
898
952
if ( currentHoverState !== 'normal' ) {
899
953
return ''
900
954
}
0 commit comments