For a simple login form, the login button is set to be disabled like following: [disabled]="!password || !loginName"
And Chrome autocomplete
will fill in those value. But after the page is loaded with loginName
and password
auto filled in, the button still disabled at the first load. I have to click somewhere on the page or click the button directly to login. [This is not preventing the click event to be captured, but the UI will display as disabled.]
你能在输入中尝试readonly属性吗?
[readonly] = "!password || !loginName"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.