Skip to content

Commit e5ca476

Browse files
authored
fix(ui): RTL not applying for localised textarea fields (#8474)
1 parent 161749b commit e5ca476

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/ui/src/fields/Textarea/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import { useFieldProps } from '../../forms/FieldPropsProvider/index.js'
1010
import { useField } from '../../forms/useField/index.js'
1111
import { withCondition } from '../../forms/withCondition/index.js'
1212
import { useConfig } from '../../providers/Config/index.js'
13+
import { useLocale } from '../../providers/Locale/index.js'
1314
import { useTranslation } from '../../providers/Translation/index.js'
1415
import { isFieldRTL } from '../shared/index.js'
1516
import './index.scss'
@@ -42,14 +43,14 @@ const TextareaFieldComponent: TextareaFieldClientComponent = (props) => {
4243
required,
4344
},
4445
labelProps,
45-
locale,
4646
readOnly: readOnlyFromTopLevelProps,
4747
validate,
4848
} = props
4949

5050
const readOnlyFromProps = readOnlyFromTopLevelProps || readOnlyFromAdmin
5151

5252
const { i18n } = useTranslation()
53+
const locale = useLocale()
5354

5455
const {
5556
config: { localization },

0 commit comments

Comments
 (0)