Project

General

Profile

Bug #2409

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

Added by Derek Spenser over 8 years ago. Updated over 7 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
   } )
 );
#1

Updated by Koen Deforche over 7 years ago

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

Updated by Koen Deforche over 7 years ago

  • Status changed from InProgress to Resolved
#3

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF