reactjs - 在反应中卸载织物面板(SPFX)
问题描述
那么我需要从 Dom 中删除吗?如果是这样,我该怎么做?我可以控制 SharePoint 中的 SPFX 扩展。面板工作正常,道具和状态都很好。当我单击关闭时,面板关闭,但它不会丢弃对象 - 这意味着背景中的屏幕仍然是灰色的。
我使用了 react 开发者工具,并且经历了所有的状态,但我找不到这样的“从 DOM 中删除组件”的工具。我需要对象完全运行。
<Panel
headerText='Case Approval'
type={PanelType.medium}
onRenderFooterContent={this._onRenderFooterContent}
isOpen={this.state.showPanel}
isHiddenOnDismiss={this.state.hidden}
onDismiss={this._hidePanel}
focusTrapZoneProps={{}}
hasCloseButton = {this.state.hasCloseButton}>
解决方案
推荐阅读
- ios - 在 iPad Pro 9.7" 上使用前置摄像头以 60 FPS 的速度拍摄视频
- deepsecurity - 搜索字段 lastIPUsed 不可搜索
- datetime - 在 Mule 4 中转换日期(Salesforce 到 Oracle)
- javascript - 防止默认();对 drop 事件没有任何影响
- php - 在上传之前发布输入文件并重命名
- javafx - 您如何运行 jlink 为您的 JavaFX 应用程序创建运行时?
- javascript - Vue Js 在 vue-js-modal 中打开画板
- html - 保持物体居中而不移动
- html - 单击播放后,音频被阻止“自动播放”?
- reactjs - 根据其他两个字段设置 redux-form 字段值