1 parent 87e5018 commit 9bfd500Copy full SHA for 9bfd500
1 file changed
src/placeholder_ctrl.h
@@ -96,9 +96,10 @@ class Placeholder final : public BaseCtrl {
96
97
/// Override GetValue to return empty when in placeholder mode rather than the placeholder text
98
wxString GetValue() const {
99
- if (is_placeholder && !this->HasFocus())
+ auto baseValue = BaseCtrl::GetValue();
100
+ if (is_placeholder && !this->HasFocus() && baseValue == placeholder)
101
return "";
- return BaseCtrl::GetValue();
102
+ return baseValue;
103
}
104
#else
105
public:
0 commit comments