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

List reordering bug #985

Closed
taussoe opened this issue Jan 5, 2018 · 2 comments
Closed

List reordering bug #985

taussoe opened this issue Jan 5, 2018 · 2 comments

Comments

@taussoe
Copy link

taussoe commented Jan 5, 2018

- Do you want to request a feature or report a bug?
Bug

- What is the current behavior?
When reordering a list the content of a markdown widget gets moved to another list items markdown widget

- If the current behavior is a bug, please provide the steps to reproduce.
Create two list items with a markdown widget inside. Drag the bottom list item above another.

- Please mention your CMS, node.js, and operating system version.
NetlifyCMS 1.0.1, node.js, gatsby, react

- Please link or paste your config.yml below if applicable.

backend:
  name: git-gateway
  branch: master

media_folder: static/img
public_folder: /img

collections:
  - name: "kontaktpersoner"
    label: "Kontakt personer"
    description: >
      Vedligeholdelse af kontaktpersoner
    folder: "src/pages/kontaktpersoner"
    create: true
    fields:
      - {label: "Path", name: "path", widget: "hidden", default: "/kontaktpersoner"}
      - {label: "Profilbillede", name: "contactimage", widget: image}
      - {label: "Navn", name: "title", widget: "string"}
      - {label: "Titel", name: "contacttitle", widget: "string"}
      - {label: "Uddannelse", name: "contacteducation", widget: "string", required: false}
      - {label: "Telefon", name: "contacttelephone", widget: "string"}
      - {label: "Email", name: "contactemail", widget: "string"}
  - name: "pages"
    label: "Pages"
    editor:
      preview: false
    files:
      - file: "src/pages/home/home.md"
        label: "Home"
        name: "home"
        fields:
          - {label: "Template Key", name: "templateKey", widget: "hidden", default: "product-page"}
          - {label: "Path", name: "path", widget: "hidden", default: "/"}
          - {label: "SEO Title", name: title, widget: string}
          - {label: "SEO Image", name: image, widget: image}
          - {label: "SEO Description", name: description, widget: string}
          - {label: Komponenter, name: components, widget: object, fields: [{label: Sektioner, name: sektioner, widget: list, fields: [{label: "Menu navn", name: menuname, widget: string}, {label: "Component", name: "component", widget: "select", options: ["Hero", "Statement", "PictureLeft", "PictureRight", "Instagram", "Kontakt"]},{label: Image, name: image, widget: image}, {label: "Overskrift", name: overskrift, widget: string}, {label: Text, name: text, widget: "markdown"}]}]}
      - file: "src/pages/about/about.md"
        label: "About"
        name: "about"
        fields:
          - {label: "Template Key", name: "templateKey", widget: "hidden", default: "about-page"}
          - {label: "Path", name: "path", widget: "hidden", default: "/about"}
          - {label: "Title", name: "title", widget: "string"}
          - {label: "Body", name: "body", widget: "markdown"}
@taussoe
Copy link
Author

taussoe commented Jan 5, 2018

Same thing happens on deleting a list item. The content from the markdown widget overwrites the content of another markdown widget in the same list.

netlifycmsbug

@erquhart
Copy link
Contributor

erquhart commented Jan 5, 2018

Thanks for posting this @taussoe - definitely needs a fix. We have the same bug covered in #754, so check there for updates or if you're interested in taking a swing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants