Bug 34497: (QA follow-up):Fix required text field
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Fri, 20 Oct 2023 14:35:26 +0000 (14:35 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 25 Oct 2023 15:09:51 +0000 (12:09 -0300)
commit84268b66ae01c58e01ab1fa094e15d2025ba8757
treeb4da08a34125b5339bea0784e7cb12efd72cfc1c
parent4416a6ed35d236e9d9945c48cbc79ca8c6ec91ac
Bug 34497: (QA follow-up):Fix required text field

input.value can be either null (if flatpickr date field empty) or '' (if simple text input empty),
so account for both situations.
Add missing 'required' attribute to text inputs.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/js/vue/components/Dialog.vue