Actions
Bug #9076
closedOpening popup (calendar) of Wt::WDateEdit fails in Widgetset mode on first render.
Start date:
09/17/2021
Due date:
% Done:
100%
Estimated time:
Description
Consider the following example:
A simple WidgetSet application with a single Wt::WDateEdit
(and a Wt::WPushButton
)
std::unique_ptr<Wt::WContainerWidget> pWidget = std::make_unique<Wt::WContainerWidget>();
auto pRoot = pWidget.get();
bindWidget(std::move(pWidget), "WidgetHolder");
pRoot->addNew<Wt::WDateEdit>();
pRoot->addNew<Wt::WPushButton>("Fix WDateEdit")->clicked().connect([](){});
When the user clicks on the calendar icon to open the calendar popup, a JS error occurs inside WDateEdit.js
p is undefined
indicating that the popup does not exist yet (Wt::WPopupWidget::render
is not yet called).
After a new round trip (js update) to the server, for example by clicking on the Wt::WPushButton
, the issue is resolved.
Note that the problem does not occur for an Application
entry point.
Updated by Korneel Dumon about 3 years ago
- Status changed from New to InProgress
- Assignee set to Korneel Dumon
- Target version set to 4.7.0
Updated by Korneel Dumon almost 3 years ago
- Status changed from InProgress to Review
- Assignee deleted (
Korneel Dumon)
Updated by Roel Standaert over 2 years ago
- Target version changed from 4.7.0 to 4.8.0
I'm going to delay this, because I still need more time to properly review this.
Updated by Roel Standaert over 2 years ago
- Target version changed from 4.8.0 to 4.9.0
Updated by Roel Standaert about 2 years ago
- Related to Bug #10923: WidgetSet mode doesn't bootstrap properly added
Updated by Roel Standaert about 2 years ago
- Status changed from Review to Implemented @Emweb
- Assignee set to Korneel Dumon
- % Done changed from 0 to 100
Updated by Roel Standaert about 2 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Roel Standaert almost 2 years ago
- Status changed from Resolved to Closed
Updated by Matthias Van Ceulebroeck about 1 year ago
- Related to Bug #12022: Session crash due wrong rendering added
Updated by Matthias Van Ceulebroeck about 1 year ago
- Related to Bug #11669: Delayed invisible changes end up in prelearned stateless slot added
Actions