Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload console warning: [Vue warn]: Extraneous non-props attributes (mode) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. at <TransitionGroup name="fade-in-height-expand-transition" mode=undefined appear=false ... > #4447

Closed
M1CK431 opened this issue Feb 6, 2023 · 18 comments · Fixed by #4479
Labels
untriaged need to sort

Comments

@M1CK431
Copy link
Contributor

M1CK431 commented Feb 6, 2023

TuSimple/naive-ui version (版本)

2.34.3

Vue version (Vue 版本)

3.2.47

Browser and its version (浏览器及其版本)

Vivaldi 5.6.2867.62

System and its version (系统及其版本)

Archlinux

Node version (Node 版本)

19.6.0

Reappearance link (重现链接)

https://www.naiveui.com/en-US/light/components/upload

Reappearance steps (重现步骤)

Use NUpload component this way:

  <NUpload
    @beforeUpload="handleUpload($event.file)"
    accept="text/html"
    trigger-style="height: 100%"
  />

Expected results (期望的结果)

No warning in browser console

Actual results (实际的结果)

[Vue warn]: Extraneous non-props attributes (mode) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. 
  at <TransitionGroup name="fade-in-height-expand-transition" mode=undefined appear=false  ... > 
  at <FadeInExpandTransition group=true > 
  at <UploadFileList> 
  at <Upload onBeforeUpload=fn accept="text/html" trigger-style="height: 100%"  ... >

Remarks (补充说明)

This is a minor issue which could be easily workaround from user side using :show-file-list="false" prop.

@github-actions github-actions bot added the untriaged need to sort label Feb 6, 2023
@lhf6623
Copy link

lhf6623 commented Feb 8, 2023

俺也遇到了
image

@eastecho
Copy link

eastecho commented Feb 9, 2023

Same here, after upgraded Vue from 3.2.31 to 3.2.47 .

@recallwei
Copy link
Contributor

+1

2 similar comments
@lnzhangsong
Copy link

+1

@vshepel
Copy link

vshepel commented Feb 22, 2023

+1

@wanjinzhong
Copy link

+1. And when to fix?

@zhangchenna
Copy link

+1

5 similar comments
@hi-reeve
Copy link
Contributor

hi-reeve commented Mar 2, 2023

+1

@franck-lynn
Copy link

+1

@turulix
Copy link

turulix commented Mar 6, 2023

+1

@wangwang93517
Copy link

+1

@mazhewei
Copy link

+1

@hanpandeng
Copy link

我看这个问题已经在2月14号修复了,但是怎么样才能更新到本地项目里呢?
image

@M1CK431
Copy link
Contributor Author

M1CK431 commented Mar 18, 2023

@hanpandeng Since this PR is still open (not merged) you will have to wait for a merge then a release. After that, yarn upgrade will be enough.

In the meantime, use :show-file-list="false" prop as a workaround (if you are not using the file list feature, ofc).

@hanpandeng
Copy link

@hanpandeng Since this PR is still open (not merged) you will have to wait for a merge then a release. After that, yarn upgrade will be enough.

In the meantime, use :show-file-list="false" prop as a workaround (if you are not using the file list feature, ofc).

thanks

@hanpandeng
Copy link

@hanpandeng Since this PR is still open (not merged) you will have to wait for a merge then a release. After that, yarn upgrade will be enough.

In the meantime, use :show-file-list="false" prop as a workaround (if you are not using the file list feature, ofc).

But I need to use the file list feature

@myccy123
Copy link

如果设置list-type="image-card" , 则这个警告就不会出现。。。

@umang-gramener
Copy link

Any Updates on this issue yet? I am facing the same issue and I want to show file list

jizai1125 added a commit to jizai1125/naive-ui that referenced this issue Apr 18, 2023
07akioni added a commit that referenced this issue May 9, 2023
…d but not be automatically inherited, closes #4447 (#4479)

Co-authored-by: 07akioni <07akioni2@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged need to sort
Projects
None yet