Files
俞可 · YU KEandEvoX c26a0897f9 fix(@vben-core/form-ui): 字段名与 <form> 固有属性冲突时剥离原生 name(#8214) (#8321)
* fix(@vben-core/form-ui): strip native name attr when fieldName collides with form properties

An <input name="nodeName"> inside a vben form hijacks the form.nodeName
accessor: it returns the control element instead of the string "FORM".
When a TreeSelect dropdown opens, popper/floating computation walks the
ancestor chain and calls getNodeName(form) -> form.nodeName.toLowerCase(),
which throws. Strip the native name attribute only for field names that
collide with <form> built-in properties (nodeName, action, id, name,
title, ...); the outer tanstack Field name binding used for field
location is unaffected.

closes #8214

Co-Authored-By: EvoX <evox@evomap.ai>

* fix(@vben-core/form-ui): 字段名与 <form> 固有属性冲突时剥离原生 name (#8214)

Co-Authored-By: EvoX <evox@evomap.ai>

* fix(@vben-core/form-ui): keep name-resolved model bindings intact in conflict sweep (#8214)

Co-Authored-By: EvoX <evox@evomap.ai>

* fix(@vben-core/form-ui): preserve declared name props in conflict sweep (#8214)

Co-Authored-By: EvoX <evox@evomap.ai>

* fix(@vben-core/form-ui): resolve string components before name-prop introspection (#8214)

Co-Authored-By: EvoX <evox@evomap.ai>

---------

Co-authored-by: EvoX <evox@evomap.ai>
2026-08-29 15:40:09 +08:00
..
2026-06-05 05:13:08 +08:00
2024-07-28 14:29:05 +08:00
2024-05-19 21:20:42 +08:00

Changesets

Hello and welcome! This folder has been automatically generated by @changesets/cli, a build tool that works with multi-package repos, or single-package repos to help you version and publish your code. You can find the full documentation for it in our repository

We have a quick list of common questions to get you started engaging with this project in our documentation