A
A
AlexSer2021-02-17 10:05:23
Yii
AlexSer, 2021-02-17 10:05:23

Why Yii2 validation rules don't work in a modal window?

I noticed that if you put it
echo form->input()
in a modal window, then validation stops working, what is the reason for this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
toratoda, 2021-02-18
@toratoda

the question is too abstract. Probably, when opening a modal window, its contents are copied, losing the events hung on the elements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question