Skip to content

Commit

Permalink
fix: remove plugin config form autoscroll
Browse files Browse the repository at this point in the history
People have reported that the autoscroll of the plugin
configuration form when pressing Submit is annoying,
so let's remove that.
  • Loading branch information
tkurki committed Feb 4, 2024
1 parent 4dd31cc commit b32e2f9
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,4 @@ class PluginCard extends Component {
</div>
)
}

componentDidMount() {
if (this.props.isOpen) {
window.scrollTo({ top: this.card.offsetTop - 54, behavior: 'smooth' })
}
}
}

0 comments on commit b32e2f9

Please sign in to comment.