Commit d6ad0a12 by CaIon

feat: Only update weight and priority when blur

parent 44d57602
...@@ -141,9 +141,11 @@ const ChannelsTable = () => { ...@@ -141,9 +141,11 @@ const ChannelsTable = () => {
<InputNumber <InputNumber
style={{width: 70}} style={{width: 70}}
name='priority' name='priority'
onChange={value => { onBlur={e => {
manageChannel(record.id, 'priority', record, value); manageChannel(record.id, 'priority', record, e.target.value);
}} }}
keepFocus={true}
innerButtons
defaultValue={record.priority} defaultValue={record.priority}
min={-999} min={-999}
/> />
...@@ -160,9 +162,11 @@ const ChannelsTable = () => { ...@@ -160,9 +162,11 @@ const ChannelsTable = () => {
<InputNumber <InputNumber
style={{width: 70}} style={{width: 70}}
name='weight' name='weight'
onChange={value => { onBlur={e => {
manageChannel(record.id, 'weight', record, value); manageChannel(record.id, 'weight', record, e.target.value);
}} }}
keepFocus={true}
innerButtons
defaultValue={record.weight} defaultValue={record.weight}
min={0} min={0}
/> />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment