nextcloud / deck

🗂 Kanban-style project & personal management tool for Nextcloud, similar to Trello
https://apps.nextcloud.com/apps/deck
GNU Affero General Public License v3.0
1.2k stars 273 forks source link

Description fails to load while editing #1917

Closed ampoz closed 4 years ago

ampoz commented 4 years ago

Describe the bug When in edit mode, clicking on another card sometimes the description of the old card stays.

To Reproduce Edit a card with a empty description, write in a description, wait for it to save, click on a second card, then on a third card; the description of the second card now keeps showing even though we are on the third card. Clicking on a fourth card updates the description correctly to that fourth cards' description, but then clicking on a fifth card shows the fourth card's description. Clicking on a sixth and seventh card, etc, usually keeps showing the fourth card description, but sometimes it "loops" again and updates the description to the x'th card and then keeps showing the x'th card description when changing cards again. Haven't found what causes the description to sometimes be carried over for 2+ cards and sometimes only for 1 card. If we exit edit mode (click on the "View description" icon), then the description updates and correctly shows the current cards' description and then clicking on card always shows the correct description (thus this issue only applies while in edit mode, when in view mode everything loads as expected).

Expected behavior Expectation is to be able to stay in "edit mode" and switch cards and edit the newly selected card so we can easily edit many cards in a row. Or, changing cards should automatically switch to view mode (but staying in edit mode seems preferable to us).

Client details:

Server details **Nextcloud version:** 18.0.4
Logs #### Browser log ``` Insert your browser log here, this could for example include: Throughout all of this, sometimes we also get this error (uncertain if related) after clicking on a card. Like the description above, this only happens while switching cards in edit mode, but it doesn't happen on every card switch (haven't noticed a pattern): TypeError: "e is null" De codemirror.js:681 splitLines codemirror.js:6460 setValue codemirror.js:6114 ni codemirror.js:3942 value easymde.js:2488 value VueEasyMDE.common.js:2773 VueJS 4 ```
stefan-niedermann commented 4 years ago

Might be a duplicate of https://github.com/nextcloud/deck/issues/1910

Have you tried to do a hard refresh with Ctrl + Shift + R?

ampoz commented 4 years ago

I have tried a hard refresh and issue stays the same. Might be related to #1910; I hadn't noticed before, but on the first card we edit we get the same issue (description goes blank, no cursor), but then switching back to view mode and then to edit, the description shows up and is editable. Every other card after that has normal behavior when going from view mode to edit mode; it is only the first card after a refresh / going into the deck app for which this happens.

reox commented 4 years ago

I noticed that too: When I have the details open of an existing card, and create a new card - sometimes the old description would be still visible with the new title in the details after double clicking the card. But I can not reproduce this on purpose.

juliushaertl commented 4 years ago
Throughout all of this, sometimes we also get this error (uncertain if related) after clicking on a card. Like the description above, this only happens while switching cards in edit mode, but it doesn't happen on every card switch (haven't noticed a pattern):
TypeError: "e is null"
    De codemirror.js:681
    splitLines codemirror.js:6460
    setValue codemirror.js:6114
    ni codemirror.js:3942
    value easymde.js:2488
    value VueEasyMDE.common.js:2773
    VueJS 4

Seems interesting, but let's close this as a duplicate of #1910 and continue over there.