fix (firefox): bug on rename which triggers the link

reported by Kolos, it seems to only happen in Firefox
This commit is contained in:
Mickael Kerjean 2023-05-04 08:40:58 +10:00
parent edfc50c525
commit 397fd8b83e

View file

@ -296,7 +296,7 @@ class ExistingThingComponent extends React.Component {
<ToggleableLink
onClick={this.onThingClick.bind(this)}
to={fileLink + window.location.search}
disabled={this.props.file.icon === "loading"}>
disabled={this.props.file.icon === "loading" || this.state.is_renaming}>
<Card
className={className + " " + this.state.hover}>
<Input type="checkbox" checked={this.props.selected} onMouseUp={(e) => onClickCheckbox(e, 1)} onMouseDown={(e) => onClickCheckbox(e, 0.95)}/>