Skip to content

Commit

Permalink
Merge pull request #17 from eea/develop
Browse files Browse the repository at this point in the history
Make sure metadata block works within Tabs block
  • Loading branch information
avoinea authored Jan 21, 2022
2 parents b6a4d8c + 6e3f599 commit 149abe1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/components/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 || {};
Expand Down Expand Up @@ -99,6 +99,8 @@ const Edit = (props) => {
},
},
});
} else {
onChangeField(id, value);
}
};

Expand Down

0 comments on commit 149abe1

Please sign in to comment.