Skip to content

Commit cdff4e8

Browse files
committed
consider empty string to trigger hint value
1 parent 79fc679 commit cdff4e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drop-down.ios.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ class TNSDropDownLabel extends TNSLabel {
458458
public setText(value: string) {
459459
const actualText = value || this._hint || "";
460460

461-
this._hasText = !types.isNullOrUndefined(value);
461+
this._hasText = !types.isNullOrUndefined(value) && value !== "";
462462
this.text = (actualText === "" ? " " : actualText); // HACK: If empty use <space> so the label does not collapse
463463

464464
this._refreshColor();

0 commit comments

Comments
 (0)