clarify behavior

This commit is contained in:
Liam DeBeasi
2023-08-10 17:19:23 -05:00
parent 783a653071
commit 2af3702b3e
2 changed files with 4 additions and 2 deletions

View File

@@ -915,7 +915,7 @@ export namespace Components {
*/
"readonly": boolean;
/**
* Resets the internal state of the datetime but does not update the value. Passing a valid ISO-8601 string will reset the state of the component to the provided date. If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
* Resets the internal state of the datetime but does not update the value. Passing a valid ISO-8601 string will reset the state of the component to the provided date. If no date string was passed but the value property is set, then the internal state of datetime will be reset to that value. Otherwise, the internal state will be reset to the clamped value of the min, max and today.
*/
"reset": (startDate?: string) => Promise<void>;
/**

View File

@@ -542,7 +542,9 @@ export class Datetime implements ComponentInterface {
/**
* Resets the internal state of the datetime but does not update the value.
* Passing a valid ISO-8601 string will reset the state of the component to the provided date.
* If no value is provided, the internal state will be reset to the clamped value of the min, max and today.
* If no date string was passed but the value property is set, then the internal state of
* datetime will be reset to that value. Otherwise, the internal state will be reset to the
* clamped value of the min, max and today.
*/
@Method()
async reset(startDate?: string) {