palantir/blueprint

Dev mode warning for Tooltip wrapping a disabled Button

Open

#3,494 建立於 2019年4月23日

在 GitHub 查看
 (0 留言) (2 反應) (0 負責人)TypeScript (2,167 fork)batch import
Domain: APIP2Package: coreType: enhancementhelp wanted

倉庫指標

Star
 (20,263 star)
PR 合併指標
 (平均合併 43天 10小時) (30 天內合併 27 個 PR)

描述

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

貢獻者指南