The new Joy-Cons use “magnetic suction” to attach to the console, “through electromagnetic suction technology, controlled by electric current” This sounds like electropermanent magnets, which have a strong magnetic field that can be switched on or off by a pulse of electric current.
I really hope these aren't just rumors that fizzle out like the Switch Pro stuff because these electropermanent magnets sound awesome! I've always hated the awkward "press button and push up" of the original Switch.