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(form): avoid splitting property names in schema path #2884

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

Conversation

vicgeralds
Copy link
Contributor

The schema path passed to custom components in the formInfo prop didn't handle property names containing underscore as expected.

Now the schema id is not split when a property name can be found in the form data matching all or some leading parts of the schema id.

Review:

  • Commits are atomic
  • Commits have the correct type for the changes made
  • Commits with breaking changes are marked as such

Browsers tested:

(Check any that applies, it's ok to leave boxes unchecked if testing something didn't seem relevant.)

Windows:

  • Chrome
  • Edge
  • Firefox

Linux:

  • Chrome
  • Firefox

macOS:

  • Chrome
  • Firefox
  • Safari

Mobile:

  • Chrome on Android
  • iOS

The schema path passed to custom components in the `formInfo` prop
didn't handle property names containing underscore as expected.

Now the schema id is not split when a property name can be found in the
form data matching all or some leading parts of the schema id.
Copy link

github-actions bot commented Apr 4, 2024

Documentation has been published to https://lundalogik.github.io/lime-elements/versions/PR-2884/

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.

1 participant