Handling when the GUI changes right before a user clicks or taps

How should I handle the GUI changing just before the user clicks or taps, causing an erroneous input?

I had the idea of ignoring input for 300ms before the input appears, but I'm not sure if this is good UX.

Is there any terminology to describe when this happens?