Browse Source

Use random string for autocomplete attribute (#10950)

Fixes #7820
tags/8.4.4
Ilia Motornyi 6 years ago
parent
commit
d166b6c89a

+ 2
- 1
client/src/main/java/com/vaadin/client/ui/VComboBox.java View File

@@ -23,6 +23,7 @@ import java.util.HashSet;
import java.util.List;
import java.util.Locale;
import java.util.Set;
import java.util.UUID;
import java.util.logging.Logger;

import com.google.gwt.animation.client.AnimationScheduler;
@@ -1371,7 +1372,7 @@ public class VComboBox extends Composite implements Field, KeyDownHandler,
* way, and they might be useful in a combo box where new items are
* allowed.
*/
getElement().setAttribute("autocomplete", "nope");
getElement().setAttribute("autocomplete", Math.random() + "");
}

/**

+ 1
- 1
compatibility-client/src/main/java/com/vaadin/v7/client/ui/VFilterSelect.java View File

@@ -1359,7 +1359,7 @@ public class VFilterSelect extends Composite
* way, and they might be useful in a combo box where new items are
* allowed.
*/
getElement().setAttribute("autocomplete", "nope");
getElement().setAttribute("autocomplete", Math.random() + "");
}

/**

Loading…
Cancel
Save