ActiveForm fields are not editable because of render method

I have a navbar menu in my views folder ( menu.php ) I was called this menu in my supplier view (supplier.php) because i need to high-lite the selected menu item.




<?= $this->render('menu', ['currentpage'=>'Suppliers']); ?>


<?php

use yii\helpers\Html;

use yii\widgets\ActiveForm;

?>


<?php $form = ActiveForm::begin(); ?>


<?= $form->field($model, 'Type')->dropDownList([ 'Individual' => 'Individual', 'Registered' => 'Registered', ], ['prompt' => '']) ?>


<?= $form->field($model, 'Licence_no')->textInput(['maxlength' => true]) ?>


<?= $form->field($model, 'Name')->textInput(['maxlength' => true]) ?>


<?= $form->field($model, 'Address')->textInput(['maxlength' => true]) ?>


<?= $form->field($model, 'Estate')->textInput(['maxlength' => true]) ?>


<?= $form->field($model, 'Acreage')->textInput() ?>


<?= $form->field($model, 'NIC')->textInput(['maxlength' => true]) ?>


<?= $form->field($model, 'Tel')->textInput() ?>


<div class="form-group">

    <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?>

</div>


<?php ActiveForm::end(); ?>




menu.php coding (refer to ‘active’ => ($currentpage == ‘Suppliers’)) only the sample coding.


[

                'url' => '#',

                'label' => 'Purchase',

                'icon' => 'home',                       

                 'items' => [

                        [

                          'url' => '../dashboard/suppliers',

                          'label' => Yii::t('app','Suppliers'), 

                          'icon'=>'glyphicon transport',                                

                          'active' => ($currentpage == 'Suppliers')

            ],

After all this modifications form field can’t editable. can’t type any values in it. once i comment out this render(‘menu’, [‘currentpage’=>‘Suppliers’]); ?> code form fields can editable i can type the values.