Skip to content

Commit 3965bd8

Browse files
committed
fix #169
1 parent b5176bb commit 3965bd8

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

drop-down.android.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,11 +456,11 @@ function initializeDropDownItemSelectedListener() {
456456
oldIndex,
457457
newIndex
458458
} as SelectedIndexChangedEventData);
459+
460+
// Seems if the user does not select an item the control reuses the views on the next open.
461+
// So it should be safe to clear the cache once the user selects an item (and not when the dropdown is closed)
462+
owner._clearCache(RealizedViewType.DropDownView);
459463
}
460-
461-
// Seems if the user does not select an item the control reuses the views on the next open.
462-
// So it should be safe to clear the cache once the user selects an item (and not when the dropdown is closed)
463-
owner._clearCache(RealizedViewType.DropDownView);
464464
}
465465

466466
public onNothingSelected() {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-drop-down",
3-
"version": "3.2.3",
3+
"version": "3.2.4",
44
"description": "A NativeScript DropDown widget.",
55
"main": "drop-down",
66
"typings": "drop-down.d.ts",

0 commit comments

Comments
 (0)