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

fix uirating using only default setting prop value #546

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

DanielHajduk98
Copy link
Contributor

Description

UiRating wont use the provided settings prop

Related Issue

Closes #

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Sorry, something went wrong.

@DanielHajduk98 DanielHajduk98 requested a review from a team as a code owner March 21, 2025 11:21
Copy link
Collaborator

@AlanLes AlanLes left a comment

Choose a reason for hiding this comment

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

I added a comment :)

Comment on lines +238 to +242
icon: props.settings.iconActive,
...radioOptionAttrs?.iconActiveAttrs,
},
iconDefaultAttrs: {
icon: defaultProps.value.settings.iconDefault,
icon: props.settings.iconDefault,
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO this should stay as it is, and the actual fix should be on lines 203-206:

    settings: {
      iconDefault,
      iconActive,
    },

should be changed to:

    settings: ...props.settings,

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.

None yet

3 participants