Fix event handling when Grid is inside a Composite (#13334)

Change-Id: I2092e6a4afc3d67f74f2971af0f410012cb62008