Can't get ean128 option from attribute
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
`` isn't working properly when using JsBarcode.init(). The reason is that the jsbarcode-ean128 option is not being read because ean128 is missing from src/options/defaults.js.
This can be fixed by adding
`ean128: false`
to the defaults variable.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The missing option is identified in src/options/defaults.js, and the reported path uses JsBarcode.init() with SVG attributes. Start by reading the defaults handling and the init flow, then verify that the ean128 attribute is recognized when its default is present. Done means the example initializes with jsbarcode-ean128="true" without the option being ignored.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- web-dev
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100