From 18cc094afa8d4e95785d823eb735e06c28547d19 Mon Sep 17 00:00:00 2001 From: David Date: Fri, 19 Jan 2024 15:28:19 -0800 Subject: [PATCH] fix: dropdown with inNavbar bug This commit is for the release notes and the actual fix here is for linting --- src/Dropdown.js | 2 +- src/DropdownToggle.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Dropdown.js b/src/Dropdown.js index c51c8021f..17d89a46a 100644 --- a/src/Dropdown.js +++ b/src/Dropdown.js @@ -99,7 +99,7 @@ class Dropdown extends React.Component { const toggle = this.getToggle(); // Add a conditional check to avoid using toggle - //if there is no toggle component in the dropdown + // if there is no toggle component in the dropdown if (!toggle) { return; } diff --git a/src/DropdownToggle.js b/src/DropdownToggle.js index 313b1093f..e9546a8d1 100644 --- a/src/DropdownToggle.js +++ b/src/DropdownToggle.js @@ -99,7 +99,7 @@ class DropdownToggle extends React.Component { Tag = tag; } - //extracted the rendering of the Tag component + // extracted the rendering of the Tag component const returnFunction = ({ ref }) => { const handleRef = (tagRef) => { ref(tagRef); @@ -120,7 +120,7 @@ class DropdownToggle extends React.Component { ); } - //No Reference component if the component is in Navbar + // No Reference component if the component is in Navbar if (this.context.inNavbar) { return ( <> @@ -129,7 +129,7 @@ class DropdownToggle extends React.Component { ); } - //Normal rendering if component not in NavBar + // Normal rendering if component not in NavBar return (