palantir/blueprint

Dev mode warning for Tooltip wrapping a disabled Button

Open

#3,494 opened on Apr 23, 2019

View on GitHub
 (0 comments) (2 reactions) (0 assignees)TypeScript (20,263 stars) (2,167 forks)batch import
Domain: APIP2Package: coreType: enhancementhelp wanted

Description

Even though it's well-documented, the issue comes up frequently: https://github.com/palantir/blueprint/issues/967#issuecomment-485615346

We should log a warning in development mode, suggesting use of an AnchorButton instead. Writing a lint rule seems like it would be harder than introspecting the React tree at runtime.

cc @thelastnode

Contributor guide

Dev mode warning for Tooltip wrapping a disabled Button · palantir/blueprint#3494 | Good First Issue