Skip to content

Commit

Permalink
fix: dom nesting error (#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
amanharwara authored Jun 6, 2022
1 parent 92024ec commit 59dcca1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/assets/javascripts/Components/NoteTags/NoteTag.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const NoteTag = ({ viewControllerManager, tag }: Props) => {

const [showDeleteButton, setShowDeleteButton] = useState(false)
const [tagClicked, setTagClicked] = useState(false)
const deleteTagRef = useRef<HTMLButtonElement>(null)
const deleteTagRef = useRef<HTMLAnchorElement>(null)

const tagRef = useRef<HTMLButtonElement>(null)

Expand Down Expand Up @@ -130,7 +130,7 @@ const NoteTag = ({ viewControllerManager, tag }: Props) => {
{title}
</span>
{showDeleteButton && (
<button
<a
ref={deleteTagRef}
type="button"
className="ml-2 -mr-1 border-0 p-0 bg-transparent cursor-pointer flex"
Expand All @@ -139,7 +139,7 @@ const NoteTag = ({ viewControllerManager, tag }: Props) => {
tabIndex={-1}
>
<Icon type="close" className="sn-icon--small color-neutral hover:color-info" />
</button>
</a>
)}
</button>
)
Expand Down

0 comments on commit 59dcca1

Please sign in to comment.