Skip to content

Conversation

@kseniya57
Copy link
Contributor

@kseniya57 kseniya57 commented May 15, 2024

Closes #74

@kseniya57 kseniya57 self-assigned this May 15, 2024
@kseniya57 kseniya57 linked an issue May 15, 2024 that may be closed by this pull request
@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@korvin89
Copy link
Contributor

@ValeraS I suggest to remove it for now due to it buggy behaviour. What do you think about it?

/** A placeholder date that controls the default values of each segment when the user first interacts with them. Defaults to today's date at midnight. */
placeholderValue?: DateTime;
/** Show dates hint on calendar button hover **/
withDatesHint?: boolean;
Copy link
Contributor

@Arucard89 Arucard89 May 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think, the prop should hide the hint for better backward compatibility and it name should be "hideDatesHint".

And if we specify property "hideDatesHint" in the component, then the hint will be hidden, if not, or it is false, then the hint will be shown. Such behaviour is more logical for me

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The thing is the component accepts all the boolean properties with show prefix
Also, by default the hint will be shown, this guarantees backward compatibility, because the condition is withDatesHint !== false, not withDatesHint

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But yes, hideDatesHint looks more logical.

@kseniya57 kseniya57 force-pushed the make-hint-optional branch from 985b5db to 7b7c297 Compare May 15, 2024 11:08
@kseniya57 kseniya57 changed the title feat(RelativeRangeDatePicker): make dates hint optional feat(RelativeRangeDatePicker): remove dates hint May 15, 2024
@kseniya57 kseniya57 merged commit 88cbce0 into main May 15, 2024
@kseniya57 kseniya57 deleted the make-hint-optional branch May 15, 2024 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can you, please, make the date hint optional

6 participants