最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Different Form validation behaviour between PrimeVue versions 4.2.5 and 4.3.2 - Stack Overflow

programmeradmin5浏览0评论

We have moved back to PrimeVue version 4.2.5 as the Form validation in 4.3.2 (and in 4.3.1) does not behave nicely in our forms. The difference can be demonstrated with this demo on Stackblitz The example can be run with both version 4.2.5 and 4.3.2 by changing the versions in package.json.

The form contains two Selects. Selecting a value from the first list updates the options in the second list.

In Primevue 4.3.2 the second Select becomes invalid immediately after picking a value in the first list. This means the user will be confronted with invalid fields even before being able to enter a value or submitting the form.

Primevue 4.2.5 behaves much better in this respect.

Is this a bug? Is this intended behaviour? If so, how do we stop needless validations of inputs the user hasn't touched?

We have moved back to PrimeVue version 4.2.5 as the Form validation in 4.3.2 (and in 4.3.1) does not behave nicely in our forms. The difference can be demonstrated with this demo on Stackblitz The example can be run with both version 4.2.5 and 4.3.2 by changing the versions in package.json.

The form contains two Selects. Selecting a value from the first list updates the options in the second list.

In Primevue 4.3.2 the second Select becomes invalid immediately after picking a value in the first list. This means the user will be confronted with invalid fields even before being able to enter a value or submitting the form.

Primevue 4.2.5 behaves much better in this respect.

Is this a bug? Is this intended behaviour? If so, how do we stop needless validations of inputs the user hasn't touched?

Share Improve this question asked Mar 24 at 12:07 ReneRene 10.5k5 gold badges36 silver badges48 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

A similar problem as this one has been reported and accepted as a bug:

https://github/primefaces/primevue/issues/7416

发布评论

评论列表(0)

  1. 暂无评论