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:
parent
8e9aa9367d
commit
77a05caa3b
2 changed files with 2 additions and 0 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Reference in a new issue