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:
@@ -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
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user