As long as the knob isn't compromised. You can place a piece of double sided tape length wise over the blade of the switch.
thanks for the tip... no pun intended.There are numerous ways to fix this problem, but the one I most recently used, worked quite well. I placed a very small amount of clear silicone caulk on the switch tip and then pushed the knob on. Let it dry and you're back in business. I've done this on two Teles and neither knob has released since. Be careful not to let the silicone touch the paint, especially on a nitro finish.