hide apply button when autoClose is true