Project

General

Profile

Actions

Bug #2409

closed

WDateEdit->date().isValid() ... inconsistent return when WDateEdit object has PlaceholderText set

Added by Derek Spenser about 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
11/14/2013
Due date:
% Done:

0%

Estimated time:

Description

 this->setTheme(new Wt::WBootstrapTheme);
 Wt::WContainerWidget* root = this->root();
 Wt::WDateEdit* dte1 = new Wt::WDateEdit(root);
 dte1->setPlaceholderText("EmptyText");
 new Wt::WBreak(root);
 Wt::WDateEdit* dte2 = new Wt::WDateEdit(root);
 new Wt::WBreak(root);
 Wt::WPushButton* evaluate = new Wt::WPushButton("Evaluate",root);
 evaluate->clicked().connect(
    std::bind([=]()  {
    std::cout << dte1->date().isValid() << std::endl; //expected valid result, returns false
    std::cout << dte2->date().isValid() << std::endl; //expected valid result, returns true
   } )
 );
Actions #1

Updated by Koen Deforche about 10 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.3.4
Actions #2

Updated by Koen Deforche about 10 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF