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

Small core fixes #798

Merged
merged 3 commits into from
Oct 6, 2023
Merged

Small core fixes #798

merged 3 commits into from
Oct 6, 2023

Conversation

msereniti
Copy link
Contributor

Motivation and Context

I found several issues.

  1. BaseTrigger generates warnings about using non existing attribute. That would be better fixed after Explicit styled primitives #748 but for now I just used the attribute name that is not passing the grand regexp.
  2. If function is provided to ref prop, it will be called twice in deep nested components because assignProps were not clearing forwardRef prop after merging it into ref prop.
  3. ScrollArea component remounts after first render. It caused by assignProp function that generates new ref function callback on every render. It cannot be fixed with current core and is not fixed in this PR.

How has this been tested?

All existing tests should pass.

Types of changes

  • Bug fix (non-breaking change which fixes an issue).
  • New feature (non-breaking change which adds functionality).
  • Breaking change (fix or feature that would cause existing functionality to not work as expected).
  • Nice improve.

Checklist:

  • My code follows the code style of this project.
  • I have updated the documentation accordingly or it's not required.
  • Unit tests are not broken.
  • I have added changelog note to corresponding CHANGELOG.md file with planned publish date.
  • I have added new unit tests on added of fixed functionality.

@msereniti msereniti merged commit 5ebd481 into master Oct 6, 2023
8 checks passed
@msereniti msereniti deleted the small-core-fixes branch October 6, 2023 14:39
ilyabrower pushed a commit that referenced this pull request Oct 10, 2023
## Motivation and Context

I found several issues.
1. BaseTrigger generates warnings about using non existing attribute.
That would be better fixed after
#748 but for now I just
used the attribute name that is not passing _the grand regexp_.
2. If function is provided to ref prop, it will be called twice in deep
nested components because assignProps were not clearing forwardRef prop
after merging it into ref prop.
3. ScrollArea component remounts after first render. It caused by
assignProp function that generates new ref function callback on every
render. It cannot be fixed with current core and is not fixed in this
PR.

## How has this been tested?

All existing tests should pass.

## Types of changes

- [x] Bug fix (non-breaking change which fixes an issue).
- [ ] New feature (non-breaking change which adds functionality).
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected).
- [ ] Nice improve.

## Checklist:

<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->

- [x] My code follows the code style of this project.
- [x] I have updated the documentation accordingly or it's not required.
- [x] Unit tests are not broken.
- [x] I have added changelog note to corresponding `CHANGELOG.md` file
with planned publish date.
- [ ] I have added new unit tests on added of fixed functionality.
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.

2 participants