element-plus icon indicating copy to clipboard operation
element-plus copied to clipboard

[Component] [select] ElSelect throws an error when running in Vue versions less than 3.2.34-beta.1.

Open 1453671194 opened this issue 1 year ago • 2 comments

Bug Type: Component

Environment

  • Vue Version: 3.2.33
  • Element Plus Version: 2.5.3
  • Browser / OS: Microsoft Edge 119.0.2151.72
  • Build Tool: Vite

Reproduction

Related Component

  • el-select

Reproduction Link

Element Plus Playground

Steps to reproduce

  1. Switch the Element-Plus version to 2.5.3.
  2. Switch the Vue version to to any version less than 3.2.34-beta.1.
  3. Refresh the preview iframe.

What is Expected?

It works normally.

What is actually happening?

It throws an error: 'we.updateOption is not a functoin.'

Additional comments

In my development environment, the error is 'option.updateOption is not a function'.

image

1453671194 avatar Jan 25 '24 09:01 1453671194

I had the same problem

liuwanwei8 avatar Jan 25 '24 09:01 liuwanwei8

u can try options data init when mounted

Chen0217 avatar Feb 04 '24 06:02 Chen0217

i fixed by setting attribute 'lazy' as true when using el-tree-select component

Yanjinghao avatar Feb 26 '24 09:02 Yanjinghao

I also had this issue. Any updates for this problem?

JackWangz avatar Mar 03 '24 16:03 JackWangz

I eventually upgraded the Vue version to 3.2.34, ensuring that other dependencies in the project continued to function properly. This allowed me to temporarily bypass the issue.

1453671194 avatar Mar 05 '24 02:03 1453671194

I also had this issue. Any updates for this problem?

P-J27 avatar Mar 14 '24 12:03 P-J27

I had the same problem

better-pz avatar Mar 21 '24 05:03 better-pz

为什么不对低版本的vue组件做支持?

Why not support lower versions of Vue components?

baiyuze avatar Mar 25 '24 08:03 baiyuze

目前vue组件版本为3.2.31仍然会报这个问题

Currently, the Vue component version is 3.2.31 and still reports this issue

baiyuze avatar Mar 25 '24 08:03 baiyuze

image

baiyuze avatar Mar 25 '24 08:03 baiyuze

请问这里修复后需要重新install嘛 如果是用cdn引入的有什么办法修复嘛 element-plus版本2.2.28

jannicaTan avatar Mar 29 '24 09:03 jannicaTan