[OSX] update autofill popup view code

Fix #2653