insin / insin/newforms-bootstrap

Unable to add className to element using widgetAttr

Open
#3 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
47
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.