🔡 fix: Rendering of Bidirectional Text (#3195)

The fix has been applied only to key components where the rendering issue is significant
This commit is contained in:
Ghaith AlHallak 2024-06-27 18:56:12 +04:00 committed by GitHub
parent ed5ee1f86f
commit 81292bb4dd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 9 additions and 2 deletions

View file

@ -5,6 +5,6 @@ export const TextareaAutosize = forwardRef<HTMLTextAreaElement, TextareaAutosize
(props, ref) => {
const [, setIsRerendered] = useState(false);
useLayoutEffect(() => setIsRerendered(true), []);
return <ReactTextareaAutosize {...props} ref={ref} />;
return <ReactTextareaAutosize dir="auto" {...props} ref={ref} />;
},
);