Skip to content

Commit

Permalink
remove dead code for popovers
Browse files Browse the repository at this point in the history
  • Loading branch information
stevector authored Nov 8, 2024
1 parent eb79334 commit fe4925e
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions src/templates/doc.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,6 @@ import MdxWrapper from "../components/mdxWrapper"
const containerWidth = "standard"

class DocTemplate extends React.Component {
componentDidMount() {
$("[data-toggle=popover]").popover({
trigger: "click",
placement: "right",
})

$("body").on("click", function (e) {
$('[data-toggle="popover"]').each(function () {
if (
!$(this).is(e.target) &&
$(this).has(e.target).length === 0 &&
$(".popover").has(e.target).length === 0
) {
$(this).popover("hide")
}
})
})

$("body").keyup(function (e) {
$('[data-toggle="popover"]').each(function () {
if (event.which === 27) {
$(this).popover("hide")
}
})
})
}

render() {
const node = this.props.data.doc
Expand Down

0 comments on commit fe4925e

Please sign in to comment.