dally with

phrasal verb
dallied with; dallying with; dallies with

Definition of dally with

1 : to do or think about (something) in a way that is not serious He's been dallying with the idea of running for office.
2 old-fashioned : to have a casual romantic or sexual relationship with (someone) a married man who has been dallying with another woman