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: isMarkedAsRequired should be false by default #10957

Merged
merged 3 commits into from
Jan 21, 2024

Conversation

imlokesh
Copy link
Contributor

@imlokesh imlokesh commented Jan 21, 2024

Description

Recent update (#10929) improves the logic for showing the asterisk label for fields marked as required. But isMarkedAsRequired should be false by default for this to work correctly.

Currently, all fields will show an asterisk unless we explicitly call markAsRequired(false) on the form component.

Code style

  • composer cs command has been run.

Testing

  • Changes have been tested.

Documentation

  • Documentation is up-to-date.

@imlokesh imlokesh marked this pull request as draft January 21, 2024 08:57
@imlokesh imlokesh marked this pull request as ready for review January 21, 2024 09:19
@danharrin
Copy link
Member

I think this breaks disabling the asterisk altogether, so going to push up a refactor

@danharrin danharrin added the bug Something isn't working label Jan 21, 2024
@danharrin danharrin added this to the v3 milestone Jan 21, 2024
@danharrin danharrin merged commit f76dcb4 into filamentphp:3.x Jan 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants