Update movable blocks if readOnly props changes
lousander opened this issue · comments
-- Bug Report --
Expected Behavior
When I change the prop readOnly, Megadraft should remove the possibility of moving blocks even if it's already instantiated.
Current Behavior
Changing the prop readOnly to true makes the text uneditable but the move blocks wrapper is still present.
Steps to Reproduce
- Create an instance of Megadraft with
readOnly
prop equalsfalse
- In the same instance of Megadraft, change
readOnly
totrue
- You cant't edit the text but the move blocks wrapper is still present over every block
- The same happens with opposite steps. Changing
readOnly
tofalse
the movable blocks wrapper does not return
Issue-Label Bot is automatically applying the label kind/bug
to this issue, with a confidence of 0.95. Please mark this comment with 👍 or 👎 to give our bot feedback!
Links: app homepage, dashboard and code for this bot.