Skip to content

Commit

Permalink
fixes default value not captured when user select no input (microsoft…
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoo-msft committed May 22, 2018
1 parent 2302d21 commit cd16e8e
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -84,7 +84,7 @@ - (instancetype)initWithTimeDateInput:(std::shared_ptr<BaseInputElement> const &
self.placeholder = placeHolderStr;
self.text = valueStr;
self.allowsEditingTextAttributes = NO;
self.borderStyle = UITextBorderStyleLine;
self.borderStyle = UITextBorderStyleRoundedRect;

if(date)
{
Expand Down Expand Up @@ -114,6 +114,7 @@ - (instancetype)initWithTimeDateInput:(std::shared_ptr<BaseInputElement> const &
- (IBAction)dismiss
{
[self endEditing:YES];
self.text = [self.formatter stringFromDate:((UIDatePicker *)self.inputView).date];
}

- (IBAction)update:(UIDatePicker *)picker
Expand Down

0 comments on commit cd16e8e

Please sign in to comment.