Skip to content

Unable to add className to element using widgetAttr #3

@switchflip

Description

@switchflip

First off I really enjoying using this library and thanks for making it. I did however come across an issue when trying to add an additional class to form element. using widgetAttr.

For example:

  advancedSettings: ->
    upc: CharField widgetAttrs:
      placeholder: "Enter Text Here"
      className: "test-class"
    taxes: ChoiceField({choices: @choices})
    modifiers: ChoiceField({choices: @moreChoices})
    allowReturns: BooleanField({required: false})

When this renders, the form only has classes from newform-bootstrap and my test-class is not applied. Any ideas whats happening?

Thank-you,

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions