Why does Uppy uses classes instead of data to attach itself

Hi,

I keep using Uppy and I keep wondering. Why does it attach itself to divs with classes and not to divs with data elements? I assume there is an underlying reason and it would be great if you could share.

It might be a thing of personal preferences, but it kind of feels something is off when there is no style attached to a class, but the class value is used just for querying.

Thanks

Users can attach it with any query selector they like, including classes and data attributes. When we use classes on the website and stuff it’s probably just habit and not for any reason :slight_smile:

1 Like