@@ -144,7 +144,24 @@ const ScrollViewMock = DOMComponent.inherit({
144
144
145
145
_useTemplates ( ) {
146
146
return false ;
147
- }
147
+ } ,
148
+
149
+ _createActions ( ) {
150
+ this . _tryRefreshPocketState ( ) ;
151
+ } ,
152
+
153
+ _tryRefreshPocketState ( ) {
154
+ this . _pageLoading = ! ! this . option ( 'onReachBottom' ) ;
155
+ } ,
156
+
157
+ _optionChanged ( args ) {
158
+ switch ( args . name ) {
159
+ case 'onPullDown' :
160
+ case 'onReachBottom' :
161
+ this . _createActions ( ) ;
162
+ break ;
163
+ }
164
+ } ,
148
165
} ) ;
149
166
150
167
const showListSlideMenu = ( $list ) => {
@@ -1139,6 +1156,21 @@ QUnit.module('options changed', moduleSetup, () => {
1139
1156
assert . equal ( $list . find ( '.dx-empty-message' ) . length , 0 , 'empty message was not rendered' ) ;
1140
1157
} ) ;
1141
1158
1159
+ QUnit . test ( 'LoadIndicator should not be shown on dataSource runtime change with repaintChangesOnly=true (T1249958)' , function ( assert ) {
1160
+ const $list = $ ( '#list' ) . dxList ( {
1161
+ dataSource : [ 'one' , 'two' , 'tree' ] ,
1162
+ repaintChangesOnly : true ,
1163
+ useNativeScrolling : true ,
1164
+ } ) ;
1165
+ const instance = $list . dxList ( 'instance' ) ;
1166
+ const scrollView = $list . dxScrollView ( 'instance' ) ;
1167
+
1168
+ instance . option ( 'dataSource' , [ 'four' , 'five' , 'six' ] ) ;
1169
+
1170
+ assert . strictEqual ( scrollView . _pageLoading , false , 'scrollBottom div is hidden' ) ;
1171
+ } ) ;
1172
+
1173
+
1142
1174
QUnit . test ( 'list should be able to change grouped option to false after dataSource option' , function ( assert ) {
1143
1175
const $element = $ ( '#list' ) . dxList ( {
1144
1176
dataSource : [ { key : 'parent' , items : [ { text : 'child' } ] } ] ,
0 commit comments