Just got the same problem, my cows stopped eating grass directly after eating cereal. If you let them eat enough cereal then put them back to grass it will hypothetically fix it.
Just tested it, if you let a cow eat a single bit of cereal THEN pick it up then it will reset to normal. If you pick it up while it's eating cereal, it will not eat grass (and probably vice versa).