adamwathan / form

Super basic form HTML builder, only really exists so I can pull it in for some other more useful projects.
MIT License
232 stars 117 forks source link

DefaultValue on Hidden sets defaultvalue="$value" #102

Closed axyr closed 7 years ago

axyr commented 8 years ago

Should

public function defaultValue($value)
    {
        if (! $this->hasValue()) {
            $this->setValue($value);
        }

        return $this;
    }

Not be set on Input instead of Text?

nCrazed commented 7 years ago

What's the use case for this?

Input is extended by Checkbox, File, Hidden, and Text.