Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recipe edits lost when creating new steps and pasting from clipboard #2590

Open
Stampede opened this issue Nov 23, 2024 · 2 comments
Open

Recipe edits lost when creating new steps and pasting from clipboard #2590

Stampede opened this issue Nov 23, 2024 · 2 comments
Labels
bug Something isn't working Frontend Issue or PR related to the frontend code

Comments

@Stampede
Copy link

Description
Changes not saved when inserting a cooking step by pasting from clipboard.

Reproduction
Steps to reproduce the behavior:

  1. Copy some text to your clipboard with a cooking instruction.
  2. Go to a recipe
  3. Click on "Edit"
  4. Scroll down to 'Instructions'
  5. Click on + Icon to "Insert entry above"
  6. Paste text from clipboard into the new empty instruction field
  7. Click "Save"

Expected behavior
Recipe reflects the changes that I just "saved"

Actual behavior
Changes are lost.

Oddly, it will save the changes if I manually edit them with the keyboard! But a lot of times, I think there are too many steps to take in one "instruction" so I will cut to clipboard from step No. 2 (for example), insert a new step below it, and paste the cut text. When I click save, step No. 2 indeed saves the changes (and loses the data formerly in it), but the new step No. 3 was never created.

If I paste the text, then type some characters in with the keyboard, then delete the extra characters, it saves properly also. That is my current workaround.

Browser
Brave Version 1.73.89 Chromium: 131.0.6778.69 (Official Build) (64-bit)

Versions
Nextcloud server version: Nextcloud Hub 8 (29.0.8)
Cookbook version: 0.11.2
Database system: PostgreSQL 16.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 13.2.1_git20240309) 13.2.1 20240309, 64-bit (I found this at the https://cloud.mydomain.com/settings/admin/serverinfo) page

@Stampede Stampede added the bug Something isn't working label Nov 23, 2024
@benchti
Copy link

benchti commented Nov 24, 2024

could you try to paste your recipe here in order to try to reproduce ?

@Stampede
Copy link
Author

could you try to paste your recipe here in order to try to reproduce ?

Here are the recipe.json files. OLD VERSION.json is the one that was giving me the trouble. I wanted to move the comments about cooking with wine from the "description" down to the actual instructions, so I cut and pasted into the new Step 3.

NEW VERSION.json is what I have now, where I still cut and pasted the new step, but I had to type some characters, then backspace delete the characters in the Step 3 text box and then click save, otherwise, Step 3 would just disappear after clicking Save.

NEW VERSION.json
OLD VERSION.json

@christianlupus christianlupus added the Frontend Issue or PR related to the frontend code label Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Frontend Issue or PR related to the frontend code
Projects
None yet
Development

No branches or pull requests

3 participants