From dd6f39c2b36a45c29a73437d3fb55369c2398d0a Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Thu, 3 Dec 2020 04:13:07 -0800 Subject: [PATCH] Wire up Tracking to different ant.design elements Summary: This wires up tracking directly to the ANT component library for the following components: 1. `Button` 2. `Collapse.Panel` 3. `Tabs` Other less commonly used elements can be connected in the future if needed. I played a bit with different patterns, but in testing the patch-package patching give the most reliable results. Alternatives considered: 1. Expect users to explicitly wrap there components, e.g. `` 1. Didn't implement this because it would be very common to forget, and at the moment you want to make some analysis you'll discover there is no interesting data available. I think for tracking we want to have opt-out rather than opt-in 2. The additional wrapping can cause some subtile layout issues due to static field inspection / forwarded refs (e.g. Ant often has an assumption that relevant children types are _directly_ nested under their parent element. For examle `