Toggle expansion when focusing input