I have a 2014 Jeep Cherokee Limited. I bought it used with 14,000 in 2017. On the day I test drove it and until today I have had the same issue and no one at the dealer could fix it: the engine would idle low and want to stall. If I am at a constant speed it is ok but as soon as I slow down to a stop, it wants to shut down. This only happens, and this is the strange part, when I gas it up. When I fil up with gas, it will start doing it, after a few miles it stops doing it and the issues goes away, until the tank is empty and I need gas again. At the beginning, when I was testing it, the dealer told me it was nothing. They said It was probably due to the car sitting on the lot for so long and had dirt in the tank. When the car does that, all lights on the dash board light up and the service transmission light comes on. It disables all safety features like park sense etc... It has now 93000 miles and last month my transmission died. I had to get it rebuilt. It would not engage into any gear except reverse, but the gas/staling issue seems ok now....What was that about? I also noticed that over the years they did software updates to better control this issue and other issues, but it was still happening and randomly not each time I put gas maybe 3 out of 4 times!
Any codes?
Has something to do with the EVAP canister purge valve system.
93,000 miles and you had to rebuild the transmission?!
How deep in love are you, with that thing?!
I agree with @Doc. Your purge valve stuck open and the gas vapors goes directly into the engine and caused the starting issue after fueling.