mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-19 08:56:37 +08:00
feat: Only update weight and priority when blur
This commit is contained in:
parent
dfdeadf1a5
commit
7f22d58574
@ -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 = () => {
|
|||||||
<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}
|
||||||
/>
|
/>
|
||||||
|
Loading…
Reference in New Issue
Block a user