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gY29udGVudHMuLicsIG9uT2s6ICgpID0+IHtcbiAgb3Blbih7IGhlYWRlcjogJzInLCBkcmFnZ2FibGU6IHRydWUsIGNvbnRlbnQ6ICdTb21lIGNvbnRlbnRzLi4nfSlcbn0gfSlcbjwvc2NyaXB0PlxuIn0=
弹窗配置:destroyOnHide: true 打开1弹窗点击确定,关闭1弹窗并打开2弹窗,2弹窗的拖动功能失效
拖动功能正常生效
Popping window configuration: Destroyonhide: true: true Open 1 pop -up window, click OK, close 1 pop -up window and open 2 pop -ups, 2 pop -up window drag function fails
The drag function takes effect normally
https://playground.idux.site/#eyJQbGF5Z3JvdW5kQXBwLnZ1ZSI6Ijx0ZW1wbGF0ZT5cbiAgPEl4RHJhd2VyUHJvdmlkZXI+XG4gICAgPEl4Tm90aWZpY2F0aW9uUHJvdmlkZXI+XG4gICAgICA8SXhNb2RhbFByb3ZpZGVyPlxuICAgICAgICA8SXhNZXNzYWdlUHJvdmlkZXI+XG4gICAgICAgICAgPEFwcCAvPlxuICAgICAgICA8L0l4TWVzc2FnZVByb3ZpZGVyPlxuICAgICAgPC9JeE1vZGFsUHJvdmlkZXI+XG4gICAgPC9JeE5vdGlmaWNhdGlvblByb3ZpZGVyPlxuICA8L0l4RHJhd2VyUHJvdmlkZXI+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IGxhbmc9XCJ0c1wiIHNldHVwPlxuaW1wb3J0IHsgc2V0dXBJZHV4IH0gZnJvbSAnLi9zZXR1cElkdXguanMnXG5pbXBvcnQgQXBwIGZyb20gJy4vQXBwLnZ1ZSdcbnNldHVwSWR1eCgpXG48L3NjcmlwdD5cbiIsIkFwcC52dWUiOiI8dGVtcGxhdGU+XG4gIDxJeEJ1dHRvbiBtb2RlPVwicHJpbWFyeVwiIEBjbGljaz1cInZpc2libGUgPSAhdmlzaWJsZVwiPk9wZW4gbW9kYWw8L0l4QnV0dG9uPlxuICA8SXhNb2RhbCB2LW1vZGVsOnZpc2libGU9XCJ2aXNpYmxlXCIgZHJhZ2dhYmxlIGhlYWRlcj1cIlRoaXMgaXMgaGVhZGVyXCI+XG4gICAgPHA+U29tZSBjb250ZW50cy4uLjwvcD5cbiAgICA8cD5Tb21lIGNvbnRlbnRzLi4uPC9wPlxuICAgIDxwPlNvbWUgY29udGVudHMuLi48L3A+XG4gIDwvSXhNb2RhbD5cbiAgPEl4U3BhY2U+XG4gICAgPEl4QnV0dG9uIEBjbGljaz1cIm9uT3BlblwiPk9wZW48L0l4QnV0dG9uPlxuICA8L0l4U3BhY2U+XG48L3RlbXBsYXRlPlxuXG48c2NyaXB0IHNldHVwIGxhbmc9XCJ0c1wiPlxuaW1wb3J0IHsgcmVmIH0gZnJvbSAndnVlJ1xuaW1wb3J0IHsgdXNlTW9kYWwgfSBmcm9tICdAaWR1eC9jb21wb25lbnRzL21vZGFsJ1xuXG5jb25zdCB2aXNpYmxlID0gcmVmKGZhbHNlKVxuXG5jb25zdCB7IG9wZW4sIGNvbmZpcm0sIGluZm8sIHN1Y2Nlc3MsIHdhcm5pbmcsIGVycm9yIH0gPSB1c2VNb2RhbCgpXG5cbmNvbnN0IG9uT3BlbiA9ICgpID0+IG9wZW4oeyBoZWFkZXI6ICcxJywgZHJhZ2dhYmxlOiB0cnVlLCBkZXN0cm95T25IaWRlOiB0cnVlLCBjb250ZW50OiAnU29tZSBjb250ZW50cy4uJywgb25PazogKCkgPT4ge1xuICBvcGVuKHsgaGVhZGVyOiAnMicsIGRyYWdnYWJsZTogdHJ1ZSwgZGVzdHJveU9uSGlkZTogdHJ1ZSwgY29udGVudDogJ1NvbWUgY29udGVudHMuLid9KVxufSB9KVxuPC9zY3JpcHQ+XG4ifQ==
首先点击 Open,发现第二个弹窗是不能拖动的,和 issue 的情况一样。然后刷新浏览器,点击 OpenModal,再去点击 Open,发现这时候原先不能拖动的第二个弹窗能被拖动了。
然后刷新浏览器,给 template 里的 IxModal 加上一个 destroyOnHide,重复上面的步骤发现第二个弹窗又不能被拖动了。
Reproduction link
https://playground.idux.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pID0+IHtcbiAgb3Blbih7IGhlYWRlcjogJzInLCBkcmFnZ2FibGU6IHRydWUsIGNvbnRlbnQ6ICdTb21lIGNvbnRlbnRzLi4nfSlcbn0gfSlcbjwvc2NyaXB0PlxuIn0=
Steps to reproduce
弹窗配置:destroyOnHide: true 打开1弹窗点击确定,关闭1弹窗并打开2弹窗,2弹窗的拖动功能失效
What is expected?
拖动功能正常生效
What is actually happening?
Environment Info
Any additional comments? (optional)