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

Canceling 'from insert URL' is causing a bug #6963

Closed
olegfedak opened this issue Nov 6, 2023 · 2 comments · Fixed by #7010
Closed

Canceling 'from insert URL' is causing a bug #6963

olegfedak opened this issue Nov 6, 2023 · 2 comments · Fixed by #7010
Labels
area: extensions/widgets/image type: bug code to address defects in shipped code

Comments

@olegfedak
Copy link
Contributor

olegfedak commented Nov 6, 2023

Describe the bug
I have been experiencing an issue with an existing image in the field widget. When I'm opening it to insert an image URL but then clicking cancel, the image gets lost.

To Reproduce
Assuming, there is image added through image widget before.

  1. Go to 'field widget image'
  2. Click on 'Insert from URL'
  3. See modal window
  4. Click on 'Cancel'
  5. The image is lost

Expected behavior
'Cancel' just closes modal window.

Screenshots
https://github.com/decaporg/decap-cms/assets/5526547/8c7dd76f-0ebe-47ba-85db-7b0bd4858794

Applicable Versions:

  • Decap CMS version: 3.0.12
  • Browser version: Safari 17.1
  • Node.JS version: 9.8.0

CMS configuration

---
local_backend: true
backend:
  name: github
  repo: mohamedhaddi/trust-and-explore
  branch: changes
logo_url: /assets/img/adminLogo.svg
media_folder: "src/assets/img/" 
public_folder: "/assets/img/"
site_url: /
collections:
  - label: "Blog"
    label_singular: 'Post'
    name: posts
    folder: src/posts
    create: true
    editor:
      preview: true
    preview_path: blog/{{title}}
    fields:
      - label: "Title"
        name: title
        widget: string
      - label: "Description"
        name: description
        widget: text
      - label: "Image"
        name: image
        widget: image
      - label: "Author"
        name: author
        widget: string
      - label: "Publish Date"
        name: date
        widget: datetime
      - label: "Categories"
        name: categories
        widget: select
        multiple: true
        create: true
        options: ["news","industry","expirience","tips","articles","nature"]
      - label: "Body"
        name: body
        widget: markdown
@olegfedak olegfedak added the type: bug code to address defects in shipped code label Nov 6, 2023
@martinjagodic
Copy link
Member

@olegfedak please fill out all the fields from the issue template

@olegfedak
Copy link
Contributor Author

@olegfedak please fill out all the fields from the issue template

Updated

@olegfedak olegfedak changed the title Canceling 'image from insert URL' is causing a bug Canceling 'from insert URL' is causing a bug Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: extensions/widgets/image type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants