question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Region MaxLength isn't working as expected

See original GitHub issue

VERSION: 4.5.1 OS: MAC BROWSER: GOOGLE.

Region max length is not working properly it only prevents the region UI to not exceed maxLength but region resizing pointer kept moving having region’s maxlength exceeded. Below is my code:

const surfer = WaveSurfer.create({
        container: waveformRef.current,
        waveColor: '#ffffff',
        progressColor: '#ffffff',
        scrollParent: true,
        backend: 'MediaElement',
        height: 80,
        cursorWidth: 2,
        cursorColor: '#dc6eb5',
        plugins: [
          RegionsPlugin.create({
            regions: [{
              start: 0,
              end: 15,
              color: 'rgba(2,161,245,0.6)',
              id: 'region1',
              minLength: 15,
              maxLength: 600,
            }],
          }),
        ],
      });

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
msuhovcommented, Oct 20, 2021

@azeemakhter-arbisoft the #2374 is not released yet

1reaction
azeemakhter-arbisoftcommented, Sep 30, 2021

No, Still looking for a possible alternative or a solution to this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text Area maxlength not working - Stack Overflow
I tried maxlength in textarea, but does not count the characters correctly(also counts the EOLs). I use max_length attribute instead of normal maxlength...
Read more >
lightning:input : maxlength attribute not working
It seems the maxlength attribute is not working on the lightning:input. Ihave put a maxlength of 5 but I can enter more than...
Read more >
TextField doesn't respect maxLength limit #67898 - GitHub
Expected results: TextField allows to enter only maxLength characters ... but I think this is not how I'd expect "maxLength" would work.
Read more >
Soft limit does not work on plain text fields because ... - Drupal
Enable the maxlength module · Go to the manage form display of the content type that has a long, plain text field on...
Read more >
The maxlength attribute on textarea is not accurately counting ...
Steps: Navigate to the URL. Enter text in the right side space provided. The characters count is accepted till 197 or 198. Expected...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found