Cjuiautocomplete In Cjuidialog

Hello people,

I use CJuiAutoComplete in CJuiDialog, works fine, but when I go to select with the mouse or cursor up / down the list proposed disappears. Any idea?

CJuiDialog code

  <?php $this->beginWidget('zii.widgets.jui.CJuiDialog', array(

	        'id' => 'dlg-detail',

	        'options' => array(

	            'title' => 'Sede',

	            'closeOnEscape' => true,

	            'autoOpen' => false,

	            'model' => false,

	            'width' => 1000,

	            'height' => 450,

                    'draggable' => false,


	)) ?>

	<div id="detail-section"></div>

	<?php $this->endWidget() ?>

CJuiAutoComplete code

    $this->widget('zii.widgets.jui.CJuiAutoComplete', array(

                'id' => 'ac_comuni',

                'name' => 'ac_comuni',

                'value' => ($model->citta) ? Comune::model()->find("idcomune='" . $model->citta . "'")->nome : '',

                'source' => $this->createUrl('comune/autocomplete'),

                'options' => array(


                    'select' => 'js:function(event, ui){ $("#hidden_citta_id").val(ui.item.id).trigger("change");}',



Sorry for my poor english.

thanks stefano

Stefano, I join in, and add that when you select with the cursor the dialog disappears and does not substitute what you selected with what you started typing.

So the final selection is indeed wrong.

i once had the same experience… thats because i adding jquery auto complete JS manually to my script…maybe theres 2 JQuery file in your page