Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips comes when text don't have ellipsis also #2

Open
RamakrishnaKo-Kore opened this issue Nov 30, 2021 · 3 comments
Open

Tooltips comes when text don't have ellipsis also #2

RamakrishnaKo-Kore opened this issue Nov 30, 2021 · 3 comments

Comments

@RamakrishnaKo-Kore
Copy link

I gave this like mentioned, but tooltip shows even text don't have ellipsis also.

{this.props.activeWS &&this.props.activeWS.name}
@chandrahaswtw
Copy link
Owner

Technically it shouldn't show the tootip. Can you give me the sample code?

@RamakrishnaKo-Kore
Copy link
Author

Sorry, this is the first time I have posted the code..

import React from 'react'; import Tooltip from '@mui/material/Tooltip';`

class WsTile extends React.PureComponent {
render(){
const options = {
    effect: "solid",
    place: "top"
  }
const style = {
      max-width:'100px'
    };
  return (
    <div style={style}>
<EllipsisToolTip options={options}>
   <span>
       Lorem ipsum dolor sit amet consectetur.
   </span>
</EllipsisToolTip>
    </div>
  )
}
}

`export default WsTile;``

@chandrahaswtw
Copy link
Owner

Thank you for notifying me, I will look into it and let you know. I've been busy these days and not getting much time to work on open-source projects. I will post my comment here when I find anything. Happy coding!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants