diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c33ffbc..873b387d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,15 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [1.2.12](https://github.com/eea/volto-tabs-block/compare/1.2.11...1.2.12) + +- Make sure metadata block works within Tabs block [`65a6bf4`](https://github.com/eea/volto-tabs-block/commit/65a6bf41ab81e308fd75c6525616a4735dbfe456) + #### [1.2.11](https://github.com/eea/volto-tabs-block/compare/1.2.10...1.2.11) -- Fix cypress tests when using with volto-slate [`ce44a11`](https://github.com/eea/volto-tabs-block/commit/ce44a11faf0f8ffc4528d6364f3151c868c12d07) +> 4 January 2022 + +- Fix cypress tests when using with volto-slate [`#16`](https://github.com/eea/volto-tabs-block/pull/16) #### [1.2.10](https://github.com/eea/volto-tabs-block/compare/1.2.9...1.2.10) diff --git a/package.json b/package.json index a19ab116..fde0a017 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@eeacms/volto-tabs-block", - "version": "1.2.11", + "version": "1.2.12", "description": "volto-tabs-block: Volto add-on", "main": "src/index.js", "author": "European Environment Agency: IDM2 A-Team", diff --git a/src/components/Edit.jsx b/src/components/Edit.jsx index 130143a0..ffb8e863 100644 --- a/src/components/Edit.jsx +++ b/src/components/Edit.jsx @@ -14,7 +14,7 @@ import cx from 'classnames'; import config from '@plone/volto/registry'; const Edit = (props) => { - const { onChangeBlock } = props; + const { onChangeBlock, onChangeField } = props; const { data = {}, block = null } = props; const template = data.template || 'default'; const tabsData = data.data || {}; @@ -99,6 +99,8 @@ const Edit = (props) => { }, }, }); + } else { + onChangeField(id, value); } };