Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ui-core: fix time picker component's properties #808

Merged
merged 1 commit into from
Jan 10, 2025
Merged

ui-core: fix time picker component's properties #808

merged 1 commit into from
Jan 10, 2025

Conversation

sim51
Copy link
Contributor

@sim51 sim51 commented Jan 8, 2025

fix #807

This commit fix the allowed properties on the component, to avoid confusion for example between value and hours & minutes.

Also refacto :

  • use useCallback when necessary
  • static function shoud be outside component definition
  • otherProps at top level, so even if a prop is defined and the component also use it, it will be overriden by the component

@sim51 sim51 requested a review from a team as a code owner January 8, 2025 13:23
@SharglutDev SharglutDev requested a review from emersion January 9, 2025 14:31
Copy link
Member

@emersion emersion left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the cleanup!

@sim51 sim51 added this pull request to the merge queue Jan 10, 2025
@sim51 sim51 removed this pull request from the merge queue due to a manual request Jan 10, 2025
fix #807

This commit fix the allowed properties on the component, to avoid
confusion for example between ``value` and `hours` & `minutes`.

Also refacto :
- use `useCallback` when necessary
- static function shoud be outside component definition
- `otherProps` at top level, so even if a prop is defined and the
  component also use it, it will be overriden by the component

Signed-off-by: Benoit Simard <[email protected]>
@sim51 sim51 enabled auto-merge January 10, 2025 13:49
@sim51 sim51 added this pull request to the merge queue Jan 10, 2025
Merged via the queue into dev with commit 1c3c611 Jan 10, 2025
6 checks passed
@sim51 sim51 deleted the bsi/issue-807 branch January 10, 2025 13:54
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.

core: TimePicker - value attribut
2 participants