GithubHelp home page GithubHelp logo

Comments (8)

Lemaro86 avatar Lemaro86 commented on July 1, 2024 2

Yes, I have such issue too. And it break all view. I resolve it by br: display none, but it isn’t good. Need add space for after span - bad hack

from react-truncate.

Jaikant avatar Jaikant commented on July 1, 2024

+1 Same issue ...

from react-truncate.

educepter avatar educepter commented on July 1, 2024

+1 Any update on this one yet?

from react-truncate.

stofancy avatar stofancy commented on July 1, 2024
  • 1 same issue.

from react-truncate.

rodrigoBerlochi avatar rodrigoBerlochi commented on July 1, 2024

+1 here
I guess the problem is here:

renderLine(line, i, arr) {
        if (i === arr.length - 1) {
            return <span key={i}>{line}</span>;
        } else {
            const br = <br key={i + 'br'} />;

            if (line) {
                return [
                    <span key={i}>{line}</span>,
                    br
                ];
            } else {
                return br;
            }
        }
    }

from react-truncate.

sharanya5 avatar sharanya5 commented on July 1, 2024

@pablosichert Same issue. Any updates on this?

from react-truncate.

UndeadBaneGitHub avatar UndeadBaneGitHub commented on July 1, 2024

Still the case, would love an update

from react-truncate.

NwosaEmeka avatar NwosaEmeka commented on July 1, 2024

+1 same issue. br tag is injected at random places and using display: none with margin to the span messes up the text

from react-truncate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.