What would you do?

Okay so me and my husband have both decided that we don’t need to spank our child to teach her how to behave. I’ve grown up in a household where spanking is always the way to go and I just see things differently, now here’s the problem my parents have told me that when my child is in their care they will spank my child (my parents know my reasons behind not spanking my kids)

Would it be wrong of me to not let my parents see their grandchild over them not respecting my rules? I feel horrible about it but this isn’t the first time it’s happened. Or do you guys have any advice before I decide to take such drastic measures?