globocom / megadraft

Megadraft is a Rich Text editor built on top of Facebook's Draft.JS featuring a nice default base of components and extensibility

Home Page:http://megadraft.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  1. Create an instance of Megadraft with readOnly prop equals false
  2. In the same instance of Megadraft, change readOnly to true
  3. You cant't edit the text but the move blocks wrapper is still present over every block
  4. The same happens with opposite steps. Changing readOnly to false 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.