Framework: [Proposal] Form::open attributes

Created on 1 Aug 2013  路  2Comments  路  Source: laravel/framework

I know the HTML/Form macros must be a headache.

Came across an issue where the Form::open() method only accepts a handful of parameters; not including class and autocomplete attributes. The class attribute is not a huge problem (I just wrapped the form in a superfluous div which has the class I want to target); but the autocomplete attribute is essential to turning off autocomplete for form inputs in Chrome.

This makes the Form::open() method useless anywhere someone needs to turn off autocomplete. IMHO; it might be neat to handle all attributes first, and then override the special ones.

Most helpful comment

You can just do:

Form::open(array('autocomplete' => 'off'))

All 2 comments

You can just do:

Form::open(array('autocomplete' => 'off'))

Don't know how I missed line 121, but this entire issue is basically dumb. Sorry for the bother.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lzp819739483 picture lzp819739483  路  3Comments

kerbylav picture kerbylav  路  3Comments

JamborJan picture JamborJan  路  3Comments

RomainSauvaire picture RomainSauvaire  路  3Comments

felixsanz picture felixsanz  路  3Comments