fix(ui): RTL not applying for localised textarea fields (#8474)

This commit is contained in:
Paul
2024-09-29 13:25:09 -06:00
committed by GitHub
parent 161749bde9
commit e5ca476d7f

View File

@@ -10,6 +10,7 @@ import { useFieldProps } from '../../forms/FieldPropsProvider/index.js'
import { useField } from '../../forms/useField/index.js'
import { withCondition } from '../../forms/withCondition/index.js'
import { useConfig } from '../../providers/Config/index.js'
import { useLocale } from '../../providers/Locale/index.js'
import { useTranslation } from '../../providers/Translation/index.js'
import { isFieldRTL } from '../shared/index.js'
import './index.scss'
@@ -42,7 +43,6 @@ const TextareaFieldComponent: TextareaFieldClientComponent = (props) => {
required,
},
labelProps,
locale,
readOnly: readOnlyFromTopLevelProps,
validate,
} = props
@@ -50,6 +50,7 @@ const TextareaFieldComponent: TextareaFieldClientComponent = (props) => {
const readOnlyFromProps = readOnlyFromTopLevelProps || readOnlyFromAdmin
const { i18n } = useTranslation()
const locale = useLocale()
const {
config: { localization },