Fix: write mode is enabled after disabling the experiment#67463
Fix: write mode is enabled after disabling the experiment#67463SantosGuillamot merged 1 commit intotrunkfrom
Conversation
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: -6 B (0%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
|
Flaky tests detected in 8ffd6fb. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12116715971
|
|
I am confused: Now that I disable the experiment, I can choose Design mode instead of Write mode. Meaning, I am not stuck anymore, but I am expecting it to be disabled. |
|
Mmm, that's not what I see in my testing 🤔 When the experiment is disabled, I can't choose between mode and "Design" is always activated. This is basically what I am doing:
If I understand you correctly, you are doing exactly the same but in the last step the "Write" mode keeps enabled and the Tools icon is there? |
What?
There is an issue where the "Write" mode remains enabled even after deactivating the experiment. This PR aims to fix that.
Why?
It is an unexpected behavior.
How?
Use the
isNavigationModehelper function instead of directly checking the preference. This helper checks if the experiment is enabled or not.Testing Instructions