Code Monkey home page Code Monkey logo

react-middle-truncate's People

Contributors

albinotonnina avatar matt-d-rat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

react-middle-truncate's Issues

security: measure-text security vulnerability

Snyk identified an security vulnerability in an upstream dependency of [email protected], as noted by other users here: FormidableLabs/measure-text#5.

Prototype Pollution

The issue is still outstanding, so in the interim I will import the measure-text dependent code into the react-middle-truncate repo until this issue is resolved.

Failed to compile

Report

Describe the bug
When I include the module in the project a Failed to compile error starts showing.

Steps to Reproduce
Just include the library in the project and try to use it.

Expected behaviour
Be able to use the library and run the project as expected.

Screenshots
Failed to compile

Other Information

React

  • react: 16.4.0
  • react-dom: 16.4.0

Desktop

  • OS: macOS 10.14.4 (18E226)
  • Browser: chrome
  • Version: 73.0.3683.86 (Build oficial) (64 bits)

"partial" smartCopy behavior is surprising

Not really a bug but it seems like the "all" and "partial" options do the same thing for smartCopy. I looked through the source code and couldn't find any differences in behavior. I assume partial was intended to create an expanded selection if the selection text is a substring that contains the ellipsis? If you don't plan to implement that feature maybe it would be less confusing for that option to be deprecated (but still work until a major release).
I re-read the code and realized that the trigger for each option is different (i.e. partial works even if the selection is an inexact match), but in each case the copied data becomes the full text input, which seems wrong for substring selections.

react-middle-truncate not work on dynamic string

Hi,
i have integrated your plugin in my reactjs project . I used reactjs with redux and redux too.
So the plugin not work when string is fetched from api.
Ps: plugin working well with hard string.
this is code:

Thanks

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.