Switch from TextField to textAreaFieal

This commit is contained in:
theaubmov 2023-12-03 20:50:25 +01:00
parent eae58f559e
commit 3b4f06b8c3
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,6 @@
import { is } from 'bpmn-js/lib/util/ModelUtil';
import {
isTextFieldEntryEdited,
TextFieldEntry,
TextAreaEntry
} from '@bpmn-io/properties-panel';
import { useService } from 'bpmn-js-properties-panel';
@ -107,7 +106,7 @@ function ConditionExpressionTextField(props) {
}
};
return TextFieldEntry({
return TextAreaEntry({
element,
id: `the-id`,
label,

View File

@ -32,7 +32,7 @@ describe('BPMN Condition', function() {
const conditions = findGroupEntry('conditions', PROPERTIES_PANEL_CONTAINER);
expect(conditions).to.exist;
const textInput = domQuery('input', conditions);
const textInput = domQuery('textarea', conditions);
expect(textInput.value).to.equal('cancel_task_2');
changeInput(textInput, 'True');
});