DateTime doesn't allow adding Picker buttons or Clearing Value
See original GitHub issueI’m trying to utilize the DateTime component, but need a way to allow the user to “clear” the field (i.e. remove the value). The DateTime API docs mention that you can pass in the pickerOptions
, but when I try to pass in an array of buttons, I see that they’re overwritten with the default Done/Cancel butttons
You can see in datetime.ts that the buttons
property is overwritten during instantiation, just after it was merged with the pickerOptions
that were sent in.
Is there a suggested approach for removing the value from one of these DateTime controls?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:3
- Comments:17 (6 by maintainers)
Top Results From Across the Web
Clear the value in a datetimepicker field - javascript
All I need to do - is - When a button on the screen is clicked, clear some of the input field on...
Read more >Issue in resetting or clearing the Datepicker | OutSystems
Hi Pankaj, To clear the input date, drag the client action DatePickerClearInputDate and set the InputId property to the Id of the input...
Read more >Solved: Clear date value - Power Platform Community
Hi,. I have a date field with datepicker in the edit form. I can clear the datepicker but when I clicked submit, the...
Read more >ion-datetime - Ionic Framework
This component displays buttons which show the current date and time values. When the buttons are tapped, the date or time pickers open...
Read more ><input type="month"> - HTML: HyperText Markup Language
By default, <input type="month"> does not apply any validation to entered values. The UI implementations generally don't let you enter ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Simpler1 The handler function was not being copied/called using our
deepCopy
. This change makes it so you can pass a handler function to the picker, for example:@IshaqBhojaniGenetech Thank you! I pushed a fix for this and released a nightly:
We plan on releasing a
3.9.1
with this fix in. Please let me know if you are still experiencing problems, thanks!