prevents the mouse wheel from scrolling the page when the user is focused on the lbc form element

fixes mousewheel lbc actions on creating publish
This commit is contained in:
Dalton 2020-01-27 20:47:48 -06:00 committed by Sean Yesmunt
parent 8e9aa9367d
commit 77a05caa3b
2 changed files with 2 additions and 0 deletions

View file

@ -147,6 +147,7 @@ class ChannelCreate extends React.PureComponent<Props, State> {
error={newChannelBidError}
value={newChannelBid}
onChange={event => this.handleNewChannelBidChange(parseFloat(event.target.value))}
onWheel={e => e.stopPropagation()}
/>
<div className="card__actions">
<Button

View file

@ -113,6 +113,7 @@ function PublishName(props: Props) {
error={bidError}
disabled={!name}
onChange={event => updatePublishForm({ bid: parseFloat(event.target.value) })}
onWheel={e => e.stopPropagation()}
helper={
<BidHelpText
uri={'lbry://' + name}