diff --git a/src/Form.php b/src/Form.php index 44792a0..37b8c56 100644 --- a/src/Form.php +++ b/src/Form.php @@ -369,7 +369,7 @@ public function mergeDataWhen($condition, Closure $callback) $data = []; if ((is_integer($condition) && $this->isStep($this->getStepId($condition))) || (is_bool($condition) && $condition === true) - || (is_callable($condition) && is_bool(value($condition($this))))) { + || (is_callable($condition) && is_bool(value($condition($this))) && value($condition($this)) === true)) { $data = value($callback($this)); }