fix(components): [popper] remove unnecessary conditional judgment (#16834)

fix: delete invalid code
This commit is contained in:
sea / 神秘海 2024-05-13 20:14:54 +08:00 committed by GitHub
parent c2843cd385
commit 75b935a977
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -93,10 +93,7 @@ provide(POPPER_CONTENT_INJECTION_KEY, {
arrowOffset,
})
if (
formItemContext &&
(formItemContext.addInputId || formItemContext.removeInputId)
) {
if (formItemContext) {
// disallow auto-id from inside popper content
provide(formItemContextKey, {
...formItemContext,