Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit dedfd16

Browse files
committed
Fix: Prevent refresh on bandwidth change
1 parent 62417b8 commit dedfd16

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/views/Base/BandwidthStatusCard/BandwidthStatusCard.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class BandwidthStatusCard extends React.Component {
3131
* Set the new bandwidth specified in state.bandwidthText
3232
* Check if text is valid, before sending.
3333
*/
34-
setBandwidth = () => {
34+
setBandwidth = (e) => {
35+
e.preventDefault();
3536
const {bandwidthText, hasError} = this.state;
3637
if (!hasError) {
3738
const {setBandwidth} = this.props;

0 commit comments

Comments
 (0)