element [bug report] I want to create a vnode containing El radio group El radio button in the way of H () in the confirm of messabebox, but it can't succeed. Please give me some advice

wydwbb8l  于 2023-02-04  发布在  其他
关注(0)|答案(3)|浏览(171)

Element UI version

2.15.1

OS/Browsers version

windows 10 chrome88

Vue version

2.6.12

https://codepen.io/ericshen-esstudio/pen/xxgGLpj

Steps to reproduce

在messagebox的confirm中,创建vnode,使用h()的方式创建el-radio-group el-radio-button,可以正常显示出来,但是发现点击后的选择状态会保留上一次的状态。相当于说,比如我上次点击了第一个radio-button,目前是这个选择状态,当我再点击第二个的radio-button时,发现第一个还是选择状态。
除非我关闭当前confirm,之后再打开,就会发现第一个radio-button的选择状态取消了,这时候才正确,请帮忙指点一下看是哪里的问题?
重现链接已经附上: https://codepen.io/ericshen-esstudio/pen/xxgGLpj

What is Expected?

希望通过h()创建el-radio-group el-radio-button,并能实现和标准的html方式一样的radio-button一样的切换效果。

What is actually happening?

但是却在messagebox关闭后才能正确显示radio-button的切换效果,关闭之前会保留上次的选中效果,并没有实现切换选择的目的。

628mspwn

628mspwn1#

Translation of this issue:

Element UI version

2.15.1

OS/Browsers version

windows 10 chrome88

Vue version

2.6.12

https://codepen.io/ericshen-esstudio/pen/xxgGLpj

Steps to reproduce

In the confirm of the message box, create a vnode and create an EL radio group El radio button by using H (). It can be displayed normally, but it is found that the selection status after clicking will remain the previous status. For example, when I click the first radio button last time, it is in this selection state. When I click the second radio button again, I find that the first one is still in the selection state.

Unless I close the current confirm and open it later, I will find that the selection status of the first radio button has been canceled, which is correct at this time. Please help me to find out what the problem is?
The recurrence link has been attached: https://codepen.io/ericshen-esstudio/pen/xxgGLpj

What is Expected?

We hope to create El radio group El radio button through H (), and achieve the same switching effect as the standard HTML radio button.

What is actually happening?

However, the switch effect of radio button can only be displayed correctly after the message box is closed, and the last selected effect will be retained before closing, which does not achieve the purpose of switch selection.

luaexgnf

luaexgnf2#

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

相关问题