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 revealer fields disappearing on save #7329

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

jacksleight
Copy link
Contributor

Fixes #7306

I assume this was caused by #6842, as after update the revealer field is no longer true so the conditional fields get hidden again.

This PR fixes it by watching for a new false value and re-calling buttonReveal() if the current value is true. I suspect there might a better way to fix this within the publish container itself, rather than updating and the immediately reverting the value, but that's a bit beyond me.

@jasonvarga jasonvarga merged commit 1daa115 into statamic:3.3 Jan 10, 2023
@mmodler
Copy link
Contributor

mmodler commented Jan 20, 2023

@jacksleight With this PR / v3.3.65 we can't close revealers anymore - just a little flicker and its open again?

EDIT: We use toggle mode

@jacksleight
Copy link
Contributor Author

@mmodler Whoops, fixed in #7384

jesseleite added a commit that referenced this pull request Jan 20, 2023
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.

Fields controlled by revealer disappear on save
3 participants