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

Updating value multiple times for boolean or select widget #6202

Open
Shekey opened this issue Feb 11, 2022 · 0 comments
Open

Updating value multiple times for boolean or select widget #6202

Shekey opened this issue Feb 11, 2022 · 0 comments
Labels
type: bug code to address defects in shipped code

Comments

@Shekey
Copy link

Shekey commented Feb 11, 2022

While using either the boolean widget or the select widget I noticed one bug. In the example I sent you I have two values and if I select one value and do publish, I stay on the same page and try to change the value again. The Publish option remains disabled for me, as if I haven't even made a change.

To Reproduce

  1. Go to page which contains boolean or select widget
  2. Update that value and press Publish
  3. Publish button will be now disabled since you have latest content
  4. Update value again
  5. Publish button stays disabled
  6. Update value to the saved one, publish button is enabled even there is no logic update on same value as it is
    -->

Expected behavior
If we update value and press publish, and then we update value again it should enable publish button.

Video
(https://share.vidyard.com/watch/jJonJqNeZQydipkkjKyvgB)

Applicable Versions:

  • Netlify CMS version: [netlify-cms 2.10.186]
  • Git provider: [GitHub]
  • OS: [Windows 10]
  • Browser version [CHROME Version 97.0.4692.99]
  • Node.JS version:

CMS configuration

{label: Simpy IZI, name: simplyIzi, widget: object, fields: [
{label: "Links", name: "links", widget: list, label_singular: "link", fields: [
{label: "Text", name: "text", widget: "string"},
*ICON,
{label: "Url", name: "href", widget: "string"},
{ label: "External", name: "external", widget: "select", options: ["true","false"]}, <!- this is causing problems: -->
]},
{label: "Items", name: "items", widget: list, label_singular: "item", fields: [
{label: "Text", name: "text", widget: "string"},
*ICON,
{label: "Link", name: "link", widget: object, fields: [
{label: "Text", name: "text", widget: "string"},
{label: "Url", name: "href", widget: "string"},
]}
]}
]},

@Shekey Shekey added the type: bug code to address defects in shipped code label Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

No branches or pull requests

1 participant