Skip to content

Commit beef5b3

Browse files
author
Igor Chepurnoy
committed
Update IonSlider.php
1 parent f207e7a commit beef5b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

IonSlider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ public function run()
4848
{
4949
if ($this->hasModel()) {
5050
echo Html::activeTextInput($this->model, $this->attribute, $this->options);
51+
} else {
52+
echo Html::textInput($this->name, $this->value, $this->options);
5153
}
5254
$this->registerAssets();
5355
}
@@ -83,4 +85,4 @@ public function getInputId()
8385
{
8486
return $this->options['id'];
8587
}
86-
}
88+
}

0 commit comments

Comments
 (0)