Project

General

Profile

Actions

Bug #2409

closed
DS KD

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

Bug #2409: WDateEdit->date().isValid() ... inconsistent return when WDateEdit object has PlaceholderText set

Added by Derek Spenser almost 13 years ago. Updated over 11 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
   } )
 );

KD Updated by Koen Deforche almost 12 years ago Actions #1

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

KD Updated by Koen Deforche almost 12 years ago Actions #2

  • Status changed from InProgress to Resolved

KD Updated by Koen Deforche over 11 years ago Actions #3

  • Status changed from Resolved to Closed
Actions

Also available in: PDF Atom