| | |
| | | <Input |
| | | style={{ width: 188, marginBottom: 8, display: 'block' }} |
| | | value={props.selectedKeys[0]} |
| | | onChange={e => props.setSelectedKeys(e.target.value ? [e.target.value] : [])} |
| | | onChange={e => { |
| | | props.setSelectedKeys(e.target.value ? [e.target.value] : []) |
| | | }} |
| | | /> |
| | | <Space> |
| | | <Button |
| | | type="primary" |
| | | onClick={() => props.confirm()} |
| | | onClick={() => { |
| | | props.confirm(); |
| | | props.setSearchParam(prevState => ({ |
| | | ...prevState, |
| | | [props.name]: props.selectedKeys[0] |
| | | })); |
| | | props.actionRef.current?.reload(); |
| | | }} |
| | | size="small" |
| | | style={{ width: 90 }} |
| | | > |