New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
更新到3.20.0后,Drawer 抽屉报错 #17387
Comments
same as react-component/drawer#109 |
https://github.com/react-component/drawer/blob/master/src/Drawer.js#L500 这个地方是不是 直接过滤掉组件内部所需要的属性,或者 直接移除 |
|
ant-design-pro 升级到v4,使用ts版,也会有这个错误,我看官网预览并没有这个错误,然后我对比了yarn create umi创建的package.json中antd版本和ant-design-pro v4分支中antd版本,发现一个为3.20.0,另一个是3.16.1,我试图安装3.16.1版,结果这个现象就没了 |
@wuchaoya 是antd 这次更新后(3.20.0)之后才出现的问题 |
现在我的项目 只要用到 Drawer 就是一片红 |
pr 已经发了,等待解决方案,这种警告其实也没什么大问题,只是在开发环境会出现这样的。 |
这次更新后,Drawer好像会一直挂载在页面上了。之前每次开 Drawer 都会重新挂载组件 更新: |
What is the current fix for this? Thanks :) |
|
我也遇到这种情况了,折腾了半天也没解决 |
在3.20出现改问题,期待官网早日解决 |
附议 |
ff |
@jljsj33 希望能在 render() {
const {
mask,
title,
width,
style,
zIndex,
filter,
height,
layout,
loading,
onClose,
visible,
closable,
children,
onSubmit,
onChange,
keyboard,
onInvalid,
className,
autoReset,
placement,
maskStyle,
bodyStyle,
maskClosable,
getContainer,
destroyOnClose,
onVisibleChange,
hideRequiredMark,
afterVisibleChange,
...restProps
} = this.props;
const { submitting } = this.state;
const spinProps = this.getSpinProps(loading);
return (
<Drawer
mask={mask}
title={title}
style={style}
width={width}
height={height}
zIndex={zIndex}
visible={visible}
closable={closable}
keyboard={keyboard}
placement={placement}
maskStyle={maskStyle}
bodyStyle={bodyStyle}
onClose={this.handleClose}
getContainer={getContainer}
maskClosable={maskClosable}
onChange={this.handleChange}
destroyOnClose={destroyOnClose}
afterVisibleChange={afterVisibleChange}
className={classNames(styles.formDrawer, className)}
>
<Form className={styles.form} onSubmit={this.handleSubmit} layout={layout} hideRequiredMark={hideRequiredMark}>
<Spin {...spinProps} wrapperClassName={classNames(styles.spinning, spinProps.wrapperClassName)}>
<div ref={this.body} className={styles.body}>
<ConfigProvider getPopupContainer={this.getPopupContainer}>
{this.renderChildren(children, restProps)}
</ConfigProvider>
</div>
</Spin>
<div className={styles.footer}>
<Button disabled={spinProps.spinning} onClick={this.handleClose}>
取消
</Button>
<Button disabled={spinProps.spinning} type="primary" loading={submitting && { delay: 150 }} htmlType="submit">
确定
</Button>
</div>
</Form>
</Drawer>
);
} |
@nuintun 可以 pr... |
我这边也是,ts下 更新到最新版本3,20.6, 直接报错了 |
@se7en00, |
@zombieJ |
把 xxxxx.lock 删了试试? |
Reproduction link
Steps to reproduce
打开抽屉,控制台报错
What is expected?
不报错
What is actually happening?
报错
The text was updated successfully, but these errors were encountered: