[MM-54515] Fix textarea not working in interactive dialog (#24586)
Этот коммит содержится в:
@@ -22,6 +22,16 @@ describe('components/interactive_dialog/DialogElement', () => {
|
||||
onChange: jest.fn(),
|
||||
};
|
||||
|
||||
it('type textarea', () => {
|
||||
const wrapper = shallow(
|
||||
<DialogElement
|
||||
{...baseDialogProps}
|
||||
type='textarea'
|
||||
/>,
|
||||
);
|
||||
expect(wrapper.find(TextSetting).dive().find('textarea').exists()).toBe(true);
|
||||
});
|
||||
|
||||
it('subtype blank', () => {
|
||||
const wrapper = shallow(
|
||||
<DialogElement
|
||||
|
||||
@@ -174,7 +174,7 @@ export default class DialogElement extends React.PureComponent<Props, State> {
|
||||
<TextSetting
|
||||
autoFocus={this.props.autoFocus}
|
||||
id={name}
|
||||
type={subtype as InputTypes || 'text'}
|
||||
type={(type === 'textarea' ? 'textarea' : subtype) as InputTypes || 'text'}
|
||||
label={displayNameContent}
|
||||
maxLength={textSettingMaxLength}
|
||||
value={assertedValue}
|
||||
|
||||
Ссылка в новой задаче
Block a user