过渡:元素不再附加到 DOM。无法动画。滑出http://localhost:8080/js/semantic.min.js?1464716916849

Transition: Element is no longer attached to DOM. Unable to animate. slide down out http://localhost:8080/js/semantic.min.js?1464716916849

在 Angular2 模板中,我使用的是语义控件。它运行良好,但在开发工具控制台中显示如下错误消息:

Transition: Element is no longer attached to DOM. Unable to animate. 
slide down out http://localhost:8080/js/semantic.min.js1464716916849

这条错误消息是什么意思?

卡在同一个地方了。在我的例子中,我使用 webpack 从 semantic-ui-less npm 包构建一个包中的语义 UI 部分。 如果您使用 webpack 或其他捆绑器,请确保您在 less 和 js 依赖项中都包含 'transition' 模块。

我有同样的问题,使用 semantic-ui-less 和 Angular 4。 我在这里找到了答案 Transition: Element is no longer attached to DOM. Unable to animate.

theme.config 中设置 @transition : 'default' 对我有用

确保加载语义 transition.css 文件。