mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-23 08:58:26 +00:00
Fixes
This commit is contained in:
parent
482573b2ff
commit
d5fdbe3126
3 changed files with 8 additions and 6 deletions
|
|
@ -10,6 +10,7 @@ import ErrorBoundary from '@/_ui/ErrorBoundary';
|
|||
const shouldAddBoxShadowAndVisibility = [
|
||||
'Table',
|
||||
'TextInput',
|
||||
'TextareaV2',
|
||||
'PasswordInput',
|
||||
'NumberInput',
|
||||
'Text',
|
||||
|
|
|
|||
|
|
@ -5,5 +5,5 @@ export const LEGACY_ITEMS = [
|
|||
'RadioButton',
|
||||
'Datepicker',
|
||||
'Modal',
|
||||
'Textarea',
|
||||
'TextArea',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import React from 'react';
|
||||
import React, { forwardRef } from 'react';
|
||||
import Label from '@/_ui/Label';
|
||||
import Loader from '@/ToolJetUI/Loader/Loader';
|
||||
import * as Icons from '@tabler/icons-react';
|
||||
const tinycolor = require('tinycolor2');
|
||||
|
||||
const RenderInput = (props) => {
|
||||
return props.inputType !== 'textarea' ? <input {...props} /> : <textarea {...props} />;
|
||||
};
|
||||
const RenderInput = forwardRef((props, ref) => {
|
||||
return props.inputType !== 'textarea' ? <input {...props} ref={ref} /> : <textarea {...props} ref={ref} />;
|
||||
});
|
||||
|
||||
export const BaseInput = ({
|
||||
height,
|
||||
|
|
@ -141,7 +141,7 @@ export const BaseInput = ({
|
|||
defaultAlignment === 'top' &&
|
||||
((width != 0 && label?.length != 0) || (auto && width == 0 && label && label?.length != 0))
|
||||
? 'flex-column'
|
||||
: 'align-items-center'
|
||||
: inputType != 'textarea' && 'align-items-center'
|
||||
} ${direction === 'right' && defaultAlignment === 'side' ? 'flex-row-reverse' : ''}
|
||||
${direction === 'right' && defaultAlignment === 'top' ? 'text-right' : ''}
|
||||
${visibility || 'invisible'}`}
|
||||
|
|
@ -163,6 +163,7 @@ export const BaseInput = ({
|
|||
isMandatory={isMandatory}
|
||||
_width={_width}
|
||||
labelWidth={labelWidth}
|
||||
top={inputType === 'textarea' && defaultAlignment === 'side' && '9px'}
|
||||
/>
|
||||
|
||||
{showLeftIcon && (
|
||||
|
|
|
|||
Loading…
Reference in a new issue