MetadataComponent uses data.content.copyToClipboard to set the title attribute of $copyTextTemplate.
The property _data of MetadataComponent is initialized in the data method.
In the base class of Metadatacomponent options.data is initialized to the merged value of the data method and options.data.
Wouldn't it be better to use options.data.content.copyToClipboard?
As of today, the code already seems to be using options.data.content.copyToClipboard, so I believe this issue was fixed some time ago (before 2019) yet the issue was never closed. Closing now.
MetadataComponent uses data.content.copyToClipboard to set the title attribute of $copyTextTemplate. The property _data of MetadataComponent is initialized in the data method. In the base class of Metadatacomponent options.data is initialized to the merged value of the data method and options.data. Wouldn't it be better to use options.data.content.copyToClipboard?