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}
|
error={newChannelBidError}
|
||||||
value={newChannelBid}
|
value={newChannelBid}
|
||||||
onChange={event => this.handleNewChannelBidChange(parseFloat(event.target.value))}
|
onChange={event => this.handleNewChannelBidChange(parseFloat(event.target.value))}
|
||||||
|
onWheel={e => e.stopPropagation()}
|
||||||
/>
|
/>
|
||||||
<div className="card__actions">
|
<div className="card__actions">
|
||||||
<Button
|
<Button
|
||||||
|
|
|
@ -113,6 +113,7 @@ function PublishName(props: Props) {
|
||||||
error={bidError}
|
error={bidError}
|
||||||
disabled={!name}
|
disabled={!name}
|
||||||
onChange={event => updatePublishForm({ bid: parseFloat(event.target.value) })}
|
onChange={event => updatePublishForm({ bid: parseFloat(event.target.value) })}
|
||||||
|
onWheel={e => e.stopPropagation()}
|
||||||
helper={
|
helper={
|
||||||
<BidHelpText
|
<BidHelpText
|
||||||
uri={'lbry://' + name}
|
uri={'lbry://' + name}
|
||||||
|
|
Loading…
Add table
Reference in a new issue