Skip to content

[Bug] AddRowColumnPlugin 的 release() 方法在 UI 元素未初始化时抛出空引用错误 #5140

Description

@wkeylin

Version

1.26.1

Link to Minimal Reproduction

https://www.visactor.com/vtable/playground?specId=0401862144&timestamp=1778989112057&version=1.26.1&theme=light

Steps to Reproduce

  1. 代码集成AddRowColumnPlugin插件,关闭列/行添加功能
  2. 点击卸载按钮,控制台会报错
vtable-BYhrX2R9.js:1 Uncaught TypeError: Cannot read properties of undefined (reading 'remove')
    at AddRowColumnPlugin.release (vtable-BYhrX2R9.js:1:67490)
    at index-CEZ06FfT.js:225:70699
    at Map.forEach (<anonymous>)
    at Qv.release (index-CEZ06FfT.js:225:70645)
    at InjectedListTable.release (index-CEZ06FfT.js:225:111177)
    at InjectedListTable.release (index-CEZ06FfT.js:226:126709)
    at HTMLButtonElement.eval (eval at executeCode (vtable-BYhrX2R9.js:1369:5198), <anonymous>:129:19)

Current Behavior

表格卸载会有错误异常

Expected Behavior

表格卸载无异常

Environment

- OS: macos
- Browser: chrome
- Framework: js

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions