mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
fix: Avoid project placeholder shadowing
This commit is contained in:
parent
6741b70f26
commit
3d50d2619b
1 changed files with 5 additions and 5 deletions
|
|
@ -111,17 +111,17 @@ export default function useTextarea({
|
|||
})}`;
|
||||
};
|
||||
|
||||
const placeholder = getPlaceholderText();
|
||||
const placeholderText = getPlaceholderText();
|
||||
|
||||
if (textAreaRef.current?.getAttribute('placeholder') === placeholder) {
|
||||
if (textAreaRef.current?.getAttribute('placeholder') === placeholderText) {
|
||||
return;
|
||||
}
|
||||
|
||||
const setPlaceholder = () => {
|
||||
const placeholder = getPlaceholderText();
|
||||
const placeholderText = getPlaceholderText();
|
||||
|
||||
if (textAreaRef.current?.getAttribute('placeholder') !== placeholder) {
|
||||
textAreaRef.current?.setAttribute('placeholder', placeholder);
|
||||
if (textAreaRef.current?.getAttribute('placeholder') !== placeholderText) {
|
||||
textAreaRef.current?.setAttribute('placeholder', placeholderText);
|
||||
forceResize(textAreaRef.current);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue