Browse Source

fix(input): allowClear in ie11 (#4699)

close #4679
pull/4739/head
ajuner 3 years ago committed by GitHub
parent
commit
ef7d0cf0d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 13
      components/input/Input.jsx

13
components/input/Input.jsx

@ -20,12 +20,13 @@ export function resolveOnChange(target, e, onChange) {
let event = e;
if (e.type === 'click') {
// click clear icon
//event = Object.create(e);
Object.defineProperty(event, 'target', {
writable: true,
});
Object.defineProperty(event, 'currentTarget', {
writable: true,
event = Object.create(e, {
target: {
writable: true,
},
currentTarget: {
writable: true,
},
});
event.target = target;
event.currentTarget = target;

Loading…
Cancel
Save