lindell / lindell/JsBarcode

Can't get ean128 option from attribute

Open
#352 0 comments 1 reaction 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.