File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -116,7 +116,14 @@ export class DropDown extends common.DropDown {
116
116
}
117
117
118
118
public _onItemsPropertyChanged ( data : dependencyObservable . PropertyChangeData ) {
119
+ let isNothingSelected : boolean = types . isNullOrUndefined ( this . selectedIndex ) ;
120
+
119
121
this . _listPicker . items = data . newValue ;
122
+
123
+ // HACK: This is needed, because in the listpicker module Telerik automatically selects the first item if the current selectedIndex is undefined.
124
+ if ( isNothingSelected ) {
125
+ this . selectedIndex = null ;
126
+ }
120
127
}
121
128
122
129
public _onHintPropertyChanged ( data : dependencyObservable . PropertyChangeData ) {
@@ -218,6 +225,7 @@ class DropDownLabelWrapper extends Label {
218
225
public onLoaded ( ) {
219
226
super . onLoaded ( ) ;
220
227
this . internalColor = this . color ;
228
+ this . text = "" ;
221
229
}
222
230
223
231
get text ( ) : string {
You can’t perform that action at this time.
0 commit comments