3 ms·
I don't think it does trigger a change for exactly this reason. I tried to build a Material login page a couple years back, where the placeholder became the la
by bsimpson 10y ago
I don't think it does trigger a change for exactly this reason. I tried to build a Material login page a couple years back, where the placeholder became the label when you typed. I couldn't get it to work with autofill, because I couldn't find a vector to detect when autofill had happened. Here's a related issue:
https://bugs.chromium.org/p/chromium/issues/detail?id=352527 https://bugs.chromium.org/p/chromium/issues/detail?id=352527
- deleted 10y ago[deleted]
- mbrookes 10y agoThat's correct - this has also been a massive issue for React, and still isn't fixed in a released version. There's a fix that was merged some time ago, pending release with React 16 [1]. There's some discussion about a 3rd party effort to back-port to 15.x. [1] https://github.com/facebook/react/issues/7211#issuecomment-266774957 https://github.com/facebook/react/issues/7211#issuecomment-2...)
- tyingq 10y agoIt doesn't trigger a change, but you can certainly poll for non empty strings: https://jsfiddle.net/k91o1dw9/7/ https://jsfiddle.net/k91o1dw9/7/ Edit: That is, for the purposes of this exploit. I understand it's ugly.