changed autofocus to only applied when non-modal.
changed autofocus to only applied when non-modal.

kublaj/dialog-polyfill,GoogleChrome/dialog-polyfill,lozandier/dialog-polyfill,neilrees/dialog-polyfill,elektronik2k5/dialog-polyfill,huangxok/dialog-polyfill,lozandier/dialog-polyfill,kublaj/dialog-polyfill,neilrees/dialog-polyfill,samthor/dialog-polyfill,elektronik2k5/dialog-polyfill,samthor/dialog-polyfill,huangxok/dialog-polyfill,GoogleChrome/dialog-polyfill