Prevent some event bubbling issues

This commit is contained in:
Ajay
2022-09-04 22:04:48 -04:00
parent ee25b41d7e
commit 93c616de23
2 changed files with 5 additions and 1 deletions

View File

@@ -237,6 +237,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
ref={this.descriptionOptionRef}
type="text"
value={this.state.description}
onContextMenu={(e) => e.stopPropagation()}
onChange={(e) => this.descriptionUpdate(e.target.value)}
onFocus={() => this.setState({chapterNameSelectorOpen: true})}>
</input>