Return the first ancestor that matches the selector.
import { parentSelector } from 'deleight/appliance';const removeListener = (e) => { table.removeChild(component.beforeRemove(parentSelector(e.target, 'tr')));}; Copy
import { parentSelector } from 'deleight/appliance';const removeListener = (e) => { table.removeChild(component.beforeRemove(parentSelector(e.target, 'tr')));};
Return the first ancestor that matches the selector.