Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(instance: HTMLTextAreaElement | null) => {
applyRef(instance, ref);
if (instance) {
update(instance.value);
}
},
[ref]
(instance: HTMLDivElement | null) => {
applyRef(instance, forwardedRef);
if (!instance || !instance.parentElement) {
return;
}
const height = instance.parentElement.offsetHeight;
if (maxHeight <= 1) {
setHeight(height * maxHeight);
} else {
setHeight(Math.min(height, maxHeight));
}
},
[maxHeight, forwardedRef]
(instance: HTMLDivElement | null) => {
applyRef(instance, ref);
tabsRef.current = instance;
},
[ref]
(instance: HTMLTextAreaElement | null) => {
applyRef(instance, forwardedRef);
areaRef.current = instance;
},
[forwardedRef]
(instance: HTMLDivElement | null) => {
applyRef(instance, ref);
menu.current = instance;
},
[ref]
(instance: HTMLInputElement | null) => {
applyRef(instance, forwardedRef);
inputRef.current = instance;
},
[forwardedRef]
(instance: HTMLDivElement | null) => {
applyRef(instance, forwardedRef);
selectRef.current = instance;
},
[forwardedRef]
(instance: HTMLDivElement | null) => {
applyRef(instance, forwardedRef);
ref.current = instance;
},
[forwardedRef]