Merge pull request #3938 from hsm-lv/fix-nestedselect-event

fix:nestedselect移动端change事件失效问题
This commit is contained in:
hsm-lv 2022-04-01 15:31:47 +08:00 committed by GitHub
commit 80dc1bc487
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ export class ToastAction implements Action {
renderer: ListenerContext,
event: RendererEvent<any>
) {
event.context.env.notify?.(action.msgType, action.msg, action);
event.context.env.notify?.(action.msgType || 'info', action.msg, action);
}
}

View File

@ -895,6 +895,7 @@ export default class NestedSelectControl extends React.Component<
<Cascader
onClose={this.close}
{...this.props}
onChange={this.handleResultChange}
options={this.props.options.slice()}
value={selectedOptions}
/>