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

field with readonly and default field not saving #3630

Closed
whchi opened this issue Nov 12, 2021 · 2 comments
Closed

field with readonly and default field not saving #3630

whchi opened this issue Nov 12, 2021 · 2 comments
Labels
request Feature Request

Comments

@whchi
Copy link

whchi commented Nov 12, 2021

  • Laravel Version: 8.70.2
  • Nova Version: 3.30.0

Description:

Fields with default() won't save into database if use readonly(), but still displays on page.

Detailed steps to reproduce the issue on a fresh Nova installation:

1. define a field with default use readonly

            Number::make('example_field')
                ->default(666.666)
                ->readonly()
                ->rules(['required'])

2. do save or update

3. check data in database

field value won't save

@crynobone
Copy link
Member

That the current expected behaviour.

@laravel laravel locked as resolved and limited conversation to collaborators Nov 23, 2021
@davidhemphill davidhemphill added the request Feature Request label Feb 23, 2022
@davidhemphill
Copy link
Contributor

👋 Hi there! In order to keep this repository focused on bug reports, we auto-close feature requests and requests for help. Feel free to post your feature requests so others can discuss and add reactions. We'll keep an eye on them for later planning.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
request Feature Request
Projects
None yet
Development

No branches or pull requests

3 participants