We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3a2d9b commit c1cd7b8Copy full SHA for c1cd7b8
src/placeholder_ctrl.h
@@ -97,9 +97,10 @@ class Placeholder final : public BaseCtrl {
97
98
/// Override GetValue to return empty when in placeholder mode rather than the placeholder text
99
wxString GetValue() const override {
100
- if (is_placeholder && !this->HasFocus())
+ auto baseValue = BaseCtrl::GetValue();
101
+ if (is_placeholder && !this->HasFocus() && baseValue == placeholder)
102
return "";
- return BaseCtrl::GetValue();
103
+ return baseValue;
104
}
105
#else
106
public:
0 commit comments