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 pass fallback value to focal point picker if value is undefined #184

Merged

Conversation

fabiankaegy
Copy link
Member

Description of the Change

Pass a default value of { x: 0.5, y: 0.5 } to the FocalPointPicker if the value is undefined.

Closes #182

How to test the Change

Create a block that uses the image component with the focal point options and don't pass it a focal point value to it

Changelog Entry

Fixed: FocalPointPicker not rendering when no default value is provided

Credits

Props @ncoetzer, @colinswinney

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link
Contributor

@ncoetzer ncoetzer left a comment

Choose a reason for hiding this comment

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

Thanks, @fabiankaegy! Looking good to me 🚀

Copy link
Member

@faisal-alvi faisal-alvi left a comment

Choose a reason for hiding this comment

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

@fabiankaegy perfect! 🚀

@colinswinney
Copy link

@fabiankaegy @ncoetzer @faisal-alvi You guys work quick! Thanks for for tackling this! 🥇 🥇 🥇

@fabiankaegy fabiankaegy merged commit 528beba into develop Dec 21, 2022
@fabiankaegy fabiankaegy deleted the fix/image-component-focal-point-picker-default-value branch December 21, 2022 06:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Component] Image [Type] Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Image component Focal Picker needs default settings
4 participants