Don't set when the user clicks away

When the grid is not clicked on, reset the value to the previous one.