newhck / php-form-builder-class

Automatically exported from code.google.com/p/php-form-builder-class
GNU General Public License v3.0
0 stars 0 forks source link

class name pfbc-* dissapears if you add new class #145

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
when i add new class the pfbc-* disaapears unless i code it as 'class' => 
'pfbc-textbox newClassName' 

Original issue reported on code.google.com by sumittul...@gmail.com on 14 Jul 2011 at 6:23

GoogleCodeExporter commented 8 years ago
Yes, you're correct - although this isn't really a bug IMO.  I suppose you 
could make the argument that it should be considered a bug, but referencing 
"class" or any other html attribute will clear any default values and replace 
them with what you've provided.

I'll think this over and determine if it makes sense to append attribute's 
default values instead of replacing.  If anyone else has any opinion on this, 
feel free to weigh in.

- Andrew

Original comment by ajporterfield@gmail.com on 14 Jul 2011 at 6:40

GoogleCodeExporter commented 8 years ago
I use the default pfbc style, and sometimes, i just need to append new class to 
it, and when i do, the default styling disappears. So I have to add the 'class' 
=> 'pfbc-*' to pretty much all the element, as I have many javascript event 
handlers. So adding the default pfbc-* class should be considered

Original comment by sumittul...@gmail.com on 14 Jul 2011 at 6:52

GoogleCodeExporter commented 8 years ago
The latest revision - r540 - has corrected this issue.

Original comment by ajporterfield@gmail.com on 13 Sep 2011 at 9:34