Hide preview when input empties