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

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 be

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

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744253588a4565285.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信