diff --git a/frontend/src/repo-history.js b/frontend/src/repo-history.js index 7702581ac6..f0778a56f7 100644 --- a/frontend/src/repo-history.js +++ b/frontend/src/repo-history.js @@ -105,7 +105,7 @@ class RepoHistory extends React.Component {
{gettext('Tip: a snapshot will be generated after modification, which records the library state after the modification.')}
} @@ -234,7 +234,8 @@ class Item extends React.Component { }); } - editLabel = () => { + editLabel = (e) => { + e.preventDefault(); this.setState({ isCommitLabelUpdateDialogOpen: !this.state.isCommitLabelUpdateDialogOpen }); @@ -269,11 +270,11 @@ class Item extends React.Component { return (