removed all console logs.
This commit is contained in:
1 parent
3226035589
commit
a7a8bb2ea8
2 files changed
-2
No files matched your search
@@ -71,7 +71,6 @@ const Select = ({
|
|||||||
if (!truncate) return; // If truncate is false, do not run this effect
|
if (!truncate) return; // If truncate is false, do not run this effect
|
||||||
|
|
||||||
const calculateMaxLength = () => {
|
const calculateMaxLength = () => {
|
||||||
console.log(selectRef);
|
|
||||||
if (selectRef.current) {
|
if (selectRef.current) {
|
||||||
const width = selectRef.current.offsetWidth;
|
const width = selectRef.current.offsetWidth;
|
||||||
const calculatedMaxLength = Math.floor(width / maxStringLength);
|
const calculatedMaxLength = Math.floor(width / maxStringLength);
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ export const renderTruncatedValue = function (
|
|||||||
maxLength,
|
maxLength,
|
||||||
placeholder
|
placeholder
|
||||||
) {
|
) {
|
||||||
console.log(maxLength);
|
|
||||||
if (isEmpty(displayName)) return placeholder;
|
if (isEmpty(displayName)) return placeholder;
|
||||||
|
|
||||||
return truncate ? (
|
return truncate ? (
|
||||||
|
|||||||
Reference in new issue
Block a user