Fine to leave for a few hours if your car needs a few hours to charge fully.
Not fine to leave for a few hours if your car was 15 minutes from full.