mirror of
https://github.com/livebook-dev/livebook.git
synced 2024-11-13 03:06:06 +08:00
Fix editor rendering on socket reconnection (#2765)
This commit is contained in:
parent
e7724d5356
commit
9b542baf71
1 changed files with 3 additions and 0 deletions
|
@ -87,6 +87,9 @@ const CellEditor = {
|
||||||
// to clean up and mount a fresh hook, which we force by ensuring
|
// to clean up and mount a fresh hook, which we force by ensuring
|
||||||
// the DOM id doesn't match
|
// the DOM id doesn't match
|
||||||
this.el.removeAttribute("id");
|
this.el.removeAttribute("id");
|
||||||
|
// The container element has phx-update="ignore", so we want to
|
||||||
|
// make sure it is also replaced
|
||||||
|
this.el.querySelector(`[data-el-editor-container]`).removeAttribute("id");
|
||||||
},
|
},
|
||||||
|
|
||||||
destroyed() {
|
destroyed() {
|
||||||
|
|
Loading…
Reference in a new issue