Does the line from the dishwasher have an air break. I‘ve had problems with the disposal pushing back into the dishwasher enough times, that I generally want to install one of the air-break assemblies on the sink deck.
I know that destroys the sleek commercial countertop look some folks demand. But, If possible it is best to have one. Forty years ago I had to install one on a house where the owner had installed both the dishwasher, and disposal themselves. No air-break, and the disposal discharged into one of the split tees with the straight vertical separator in it. The back pressure that caused in the drain line was pushing waste back out the line from the disposal to the dishwasher.
If they ran the disposal, before starting teh dishwasher, no problem. If they ran the disposal with out running the dishwasher afterwards, they would get strange smells.
EDIT TO ADD: Filling the disposal, and then running it with more than a faucets flow of water through it, makes the problem of pushing things back to the dishwasher worse. If you do that there is more than the drain line can handle, (particularly if you have a sink full of water behind it), and the dishwasher port gets pressurized. Think of the disposal as an inefficient centrifugal pump. If you follow the directions and feed waste into it while running, with the faucet on. there isn’t a lot of pressure Generated on teh drain line. Run it like most folks do, with the waste stuffed in, it has more ability to generate pressure. Do it like my sister, who puts the waste in before she washes the dishes, then runs it as she drains the pan full of rinse water, and it will generate about a foot of head.