I have a problem with a pop-up form in Yii2. "Update" is not working. The form is displayed but inspect tool shows:
Uncaught RangeError: Maximum call stack size exceeded.
The action of creating uses the same code and it works perfectly. I do not know what's going on.
$(function(){
$(document).on('click','#modalButton',function(){
var id = $(this).attr('value');
$.get('update',{'id':id},function(data){
$('#modalUpdate').modal('show')
.find('#modalContentUpdate')
.html(data);
});
});