From ca6ef4e11f28d3161174f8294fb2bc3098a0043a Mon Sep 17 00:00:00 2001 From: Jeremy Kauffman Date: Fri, 29 Sep 2017 16:51:36 -0400 Subject: [PATCH] fix all step properties, removing publish or send minimums app-side --- ui/js/component/formFieldPrice/view.jsx | 4 ++-- ui/js/component/publishForm/internal/channelSection.jsx | 2 +- ui/js/component/publishForm/view.jsx | 4 +--- ui/js/component/walletSend/view.jsx | 2 +- ui/js/component/walletSendTip/view.jsx | 2 +- ui/js/page/settings/view.jsx | 2 -- 6 files changed, 6 insertions(+), 10 deletions(-) diff --git a/ui/js/component/formFieldPrice/view.jsx b/ui/js/component/formFieldPrice/view.jsx index ed85a05b9..81c97c8e8 100644 --- a/ui/js/component/formFieldPrice/view.jsx +++ b/ui/js/component/formFieldPrice/view.jsx @@ -34,7 +34,7 @@ class FormFieldPrice extends React.PureComponent { } render() { - const { defaultValue, placeholder, min, step } = this.props; + const { defaultValue, placeholder, min } = this.props; return ( @@ -43,7 +43,7 @@ class FormFieldPrice extends React.PureComponent { name="amount" min={min} placeholder={placeholder || null} - step={step} + step="any" //Unfortunately, you cannot set a step without triggering validation that enforces a multiple of the step onChange={event => this.handleFeeAmountChange(event)} defaultValue={ defaultValue && defaultValue.amount ? defaultValue.amount : "" diff --git a/ui/js/component/publishForm/internal/channelSection.jsx b/ui/js/component/publishForm/internal/channelSection.jsx index cbd2669b9..c89218415 100644 --- a/ui/js/component/publishForm/internal/channelSection.jsx +++ b/ui/js/component/publishForm/internal/channelSection.jsx @@ -148,7 +148,7 @@ class ChannelSection extends React.PureComponent { - {/*min=0.01 caused weird interactions with step (e.g. down from 5 equals 4.91 rather than 4.9) */} this.handleFeeChange(val)} /> @@ -823,7 +821,7 @@ class PublishForm extends React.PureComponent { { diff --git a/ui/js/component/walletSend/view.jsx b/ui/js/component/walletSend/view.jsx index 3e65cceab..942cec9e5 100644 --- a/ui/js/component/walletSend/view.jsx +++ b/ui/js/component/walletSend/view.jsx @@ -33,7 +33,7 @@ class WalletSend extends React.PureComponent { this.onInstantPurchaseMaxChange(val)} defaultValue={instantPurchaseMax} />}