Skip to content

Commit

Permalink
fix: dropdown with inNavbar bug
Browse files Browse the repository at this point in the history
This commit is for the release notes and the actual fix here is for linting
  • Loading branch information
davidacevedo committed Jan 19, 2024
1 parent 5a95269 commit 18cc094
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Dropdown.js
Expand Up @@ -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;
}
Expand Down
6 changes: 3 additions & 3 deletions src/DropdownToggle.js
Expand Up @@ -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);
Expand All @@ -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 (
<>
Expand All @@ -129,7 +129,7 @@ class DropdownToggle extends React.Component {
);
}

//Normal rendering if component not in NavBar
// Normal rendering if component not in NavBar
return (

<Reference innerRef={innerRef} >
Expand Down

0 comments on commit 18cc094

Please sign in to comment.