diff --git a/CHANGELOG.md b/CHANGELOG.md index a08bcdf77f02..77f2b5faff1f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## \[Unreleased] ### Added - Multi-line text attributes supported () +- Now you can configure default attribute value for SELECT, RADIO types on UI + () ### Changed - TDB diff --git a/cvat-ui/package.json b/cvat-ui/package.json index f506b0e81a1b..da5e616d4ec3 100644 --- a/cvat-ui/package.json +++ b/cvat-ui/package.json @@ -1,6 +1,6 @@ { "name": "cvat-ui", - "version": "1.53.1", + "version": "1.53.2", "description": "CVAT single-page application", "main": "src/index.tsx", "scripts": { diff --git a/cvat-ui/src/components/labels-editor/label-form.tsx b/cvat-ui/src/components/labels-editor/label-form.tsx index d82f7f1f54cf..8c0cfc7f1d00 100644 --- a/cvat-ui/src/components/labels-editor/label-form.tsx +++ b/cvat-ui/src/components/labels-editor/label-form.tsx @@ -246,7 +246,7 @@ export default class LabelForm extends React.Component { }; return ( - + { dropdownStyle={{ display: 'none' }} tagRender={(props) => { const attrs = this.formRef.current?.getFieldValue('attributes'); + const isDefault = props.value === attrs[key].default_value; return ( - { - attrs[key].default_value = props.value; - this.formRef.current?.setFieldsValue({ - attributes: attrs, - }); - }} - closable={props.closable} + - {props.label} - + { + attrs[key].default_value = props.value; + this.formRef.current?.setFieldsValue({ + attributes: attrs, + }); + }} + closable={props.closable} + > + {props.label} + + ); }} />