Skip to content

Commit

Permalink
fix(input): remove autocomplete from all Editors & Filters
Browse files Browse the repository at this point in the history
  • Loading branch information
ghiscoding committed Apr 12, 2019
1 parent 35537ba commit 6db160e
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/aurelia-slickgrid/editors/autoCompleteEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export class AutoCompleteEditor implements Editor {
this.labelName = this.customStructure && this.customStructure.label || 'label';
this.valueName = this.customStructure && this.customStructure.value || 'value';

this.$input = $(`<input type="text" class="editor-text editor-${columnId}" placeholder="${placeholder}" title="${title}" />`)
this.$input = $(`<input type="text" class="editor-text editor-${columnId}" autocomplete="off" placeholder="${placeholder}" title="${title}" />`)
.appendTo(this.args.container)
.on('keydown.nav', (event: JQueryEventObject) => {
this._lastInputEvent = event;
Expand Down
2 changes: 1 addition & 1 deletion src/aurelia-slickgrid/editors/floatEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export class FloatEditor implements Editor {
const placeholder = this.columnEditor && this.columnEditor.placeholder || '';
const title = this.columnEditor && this.columnEditor.title || '';

this.$input = $(`<input type="number" class="editor-text editor-${columnId}" placeholder="${placeholder}" title="${title}" step="${this.getInputDecimalSteps()}" />`)
this.$input = $(`<input type="number" class="editor-text editor-${columnId}" autocomplete="off" placeholder="${placeholder}" title="${title}" step="${this.getInputDecimalSteps()}" />`)
.appendTo(this.args.container)
.on('keydown.nav', (event: JQueryEventObject) => {
this._lastInputEvent = event;
Expand Down
2 changes: 1 addition & 1 deletion src/aurelia-slickgrid/editors/integerEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class IntegerEditor implements Editor {
const placeholder = this.columnEditor && this.columnEditor.placeholder || '';
const title = this.columnEditor && this.columnEditor.title || '';

this.$input = $(`<input type="number" class="editor-text editor-${columnId}" placeholder="${placeholder}" title="${title}" />`)
this.$input = $(`<input type="number" class="editor-text editor-${columnId}" autocomplete="off" placeholder="${placeholder}" title="${title}" />`)
.appendTo(this.args.container)
.on('keydown.nav', (event: JQueryEventObject) => {
this._lastInputEvent = event;
Expand Down
2 changes: 1 addition & 1 deletion src/aurelia-slickgrid/editors/textEditor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class TextEditor implements Editor {
const placeholder = this.columnEditor && this.columnEditor.placeholder || '';
const title = this.columnEditor && this.columnEditor.title || '';

this.$input = $(`<input type="text" class="editor-text editor-${columnId}" placeholder="${placeholder}" title="${title}" />`)
this.$input = $(`<input type="text" class="editor-text editor-${columnId}" autocomplete="off" placeholder="${placeholder}" title="${title}" />`)
.appendTo(this.args.container)
.on('keydown.nav', (event: JQueryEventObject) => {
this._lastInputEvent = event;
Expand Down
2 changes: 1 addition & 1 deletion src/aurelia-slickgrid/filters/compoundInputFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export class CompoundInputFilter implements Filter {
if (this.columnFilter && this.columnFilter.placeholder) {
placeholder = this.columnFilter.placeholder;
}
return `<input class="form-control" type="${this._inputType || 'text'}" placeholder="${placeholder}" /><span></span>`;
return `<input type="${this._inputType || 'text'}" class="form-control" autocomplete="off" placeholder="${placeholder}" /><span></span>`;
}

private buildSelectOperatorHtmlString() {
Expand Down
2 changes: 1 addition & 1 deletion src/aurelia-slickgrid/filters/inputFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export class InputFilter implements Filter {
if (this.columnFilter && this.columnFilter.placeholder) {
placeholder = this.columnFilter.placeholder;
}
return `<input type="${this._inputType || 'text'}" class="form-control search-filter filter-${columnId}" placeholder="${placeholder}"><span></span>`;
return `<input type="${this._inputType || 'text'}" class="form-control search-filter filter-${columnId}" autocomplete="off" placeholder="${placeholder}"><span></span>`;
}

/**
Expand Down

0 comments on commit 6db160e

Please sign in to comment.