Fixed issue with missing parent class attribute for shared parent comparison on document click