You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Change the name of a mod component in the Page Editor
Click Clear Changes for the mod component
Actual behavior
The changes are cleared in the form state, but the component still shows a red disk icon
Expected behavior
The component does not show a red disk icon
Discussion
From the UI it looks like the mod component might be getting correctly set at clean and then getting marked as dirty
If you click Clear Changes on the mod and then click into the mod components, they also get marked as dirty. So I suspect for these mods there’s some useEffect normalization causing them to become dirty
If the editor is performing useEffects to normalize the state this is potentially the "correct" behavior in that the brick is being modified (although non-functionally) when the user clicks into it
Desktop (please complete the following information):
Describe the bug
To Reproduce
Steps to Reproduce:
Actual behavior
The changes are cleared in the form state, but the component still shows a red disk icon
Expected behavior
The component does not show a red disk icon
Discussion
useEffect
normalization causing them to become dirtyuseEffects
to normalize the state this is potentially the "correct" behavior in that the brick is being modified (although non-functionally) when the user clicks into itDesktop (please complete the following information):
Related Code
pixiebrix-extension/src/pageEditor/hooks/useClearModComponentChanges.ts
Line 77 in e092de9
The text was updated successfully, but these errors were encountered: