Bug #2692
closedWFormWidget::setPlaceholderText() implement as HTML5 placeholder attribute!
0%
Description
I have a WLineEdit which shows a selected text from a WSelectionBox. The
first entry of the WSelectionBox means "enter a new entry" and will
clear the contents of the WLineEdit and I expect that if the WLineEdit
is cleared the Placeholder text is shown. But when I select item 2 or 3
from the selection box and directly after that the new entry the old
text will be rendered as the Placeholder text. Here is an example:
setPlaceholderText("Enter a new name");
SelectionBox items:
"New name"
"Ruppert"
"Maier"
"Test"
If I select "Maier" from the selection box the contents of the line edit
shows the name "Maier". Then I select "New name" and the line edit will
be cleared. But now not "Enter a new name" will be rendered in light
grey color instead "Maier" is rendered in this placeholder color!
Regards,
Stefan
Updated by Stefan Ruppert almost 11 years ago
Hi,
I tested this bug with wt-3.3.4 and its fixed within this version.
However, HTML5 placeholder attribute is still not used...
Stefan
Updated by Rutger ter Borg almost 10 years ago
bump
Please add support for placeholders on input labels to Wt. I'm not fully up to speed with Wt internals, but AFAICT it requires the following changes:
DomElement:
Add PropertyPlaceholder to the Property enum
WFormWidget:
Update setPlaceHolderText
Updated by Koen Deforche almost 10 years ago
- Status changed from New to InProgress
- Assignee set to Roel Standaert
Updated by Roel Standaert almost 10 years ago
- Status changed from InProgress to Implemented @Emweb
Updated by Koen Deforche over 9 years ago
- Status changed from Implemented @Emweb to Closed
- Target version set to 3.3.6