Updating value multiple times for boolean or select widget
- Dominant language
- JavaScript
- Stars
- 19.4k
- Forks
- 3.1k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 9
Description
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"]},**
]},
{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"},
]}
]}
]},
Contributor guide
Assessment
This issue has not been assessed yet.