We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 305f7c3 commit 227b932Copy full SHA for 227b932
src/core/components/highlight-code.jsx
@@ -42,12 +42,12 @@ export default class HighlightCode extends Component {
42
}
43
44
45
- componentDidMount() {
+ UNSAFE_componentDidMount() {
46
[this.#syntaxHighlighter, this.#pre]
47
.map(element => element?.addEventListener("mousewheel", this.preventYScrollingBeyondElement, { passive: false }))
48
49
50
- componentWillUnmount() {
+ UNSAFE_componentWillUnmount() {
51
52
.map(element => element?.removeEventListener("mousewheel", this.preventYScrollingBeyondElement))
53
0 commit comments