react-form-builder-more-flexibility 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/toolbar.js CHANGED
@@ -533,7 +533,11 @@ var Toolbar = /*#__PURE__*/function (_React$Component) {
533
533
  }
534
534
  if (item.options) {
535
535
  if (item.options.length > 0) {
536
- elementOptions.options = item.options;
536
+ elementOptions.options = item.options.map(function (x) {
537
+ return _objectSpread(_objectSpread({}, x), {}, {
538
+ key: "custom_option_".concat(_UUID["default"].uuid())
539
+ });
540
+ });
537
541
  } else {
538
542
  elementOptions.options = Toolbar._defaultItemOptions(elementOptions.element, intl);
539
543
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-form-builder-more-flexibility",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A complete form builder for react.",
5
5
  "main": "lib/index.js",
6
6
  "types": "types/index.d.ts",