Skip to content

Commit

Permalink
Disable auto complete on input fields (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkalpias authored Dec 1, 2021
1 parent 962ac19 commit fdb2fd6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@playcanvas/pcui",
"version": "2.2.5",
"version": "2.2.6",
"author": "PlayCanvas <[email protected]>",
"homepage": "https://playcanvas.github.io/pcui",
"description": "This library enables the creation of reliable and visually pleasing user interfaces by providing fully styled components that you can use directly on your site. The components are useful in a wide range of use cases, from creating simple forms to building graphical user interfaces for complex web tools.",
Expand Down
6 changes: 4 additions & 2 deletions src/TextInput/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,12 @@ class TextInput extends Element {
let input = args.input;
if (!input) {
input = document.createElement('input');
input.ui = this;
input.type = 'text';
input.tabIndex = 0;
}

input.ui = this;
input.tabIndex = 0;
input.autocomplete = "off";
this._domInput = input;

this._domEvtChange = this._onInputChange.bind(this);
Expand Down

0 comments on commit fdb2fd6

Please sign in to comment.