When closed, does the cover magnetically stay latched?

I looked at one in an Apple Store and it didn't seem to stay closed, flapping open while being moved to different positions.

Smart Keyboard for 12.9-inch iPad Pro

Smart Keyboard for 12.9-inch iPad Pro

Product No Longer Available

No Answers have been submitted