It had been a minute since I touched this code, so I had to go look to refresh my memory For the payload of the event I send up to the phoenix channel, I take the custom element detail property and also merge in the element data set (any attributes that start with data-). This seems to give enough flexibility to do what I need to do in the cases I’ve encountered so far.