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

SearchHighlight plugin does not work when table content contains urls #609

Open
Sailwayfun opened this issue Feb 5, 2025 · 1 comment
Open

Comments

@Sailwayfun
Copy link

Sailwayfun commented Feb 5, 2025

Problem

I use the searchHighlight plugin in my project, everything except urls are highlighted properly, but when the query term matches the url, the search did apply, but the highlighting is not working.

Simple repro:

The problematic column:

render: (data) => {
if (!data) return "";
return <a href="${data}" target="_blank" rel="noopener noreferrer" style="cursor: pointer; text-decoration: underline;"> ${data} </a>;
},

example table url: "https://etherscan.io/", query "et"

@AllanJard
Copy link
Contributor

There is no DataTable in the example that I can see?

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