Skip to content

Commit

Permalink
docs site update + focus fix when changing input type
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Nielsen committed Apr 22, 2017
1 parent 2591ba2 commit 8ab7c09
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 2 deletions.
1 change: 1 addition & 0 deletions dist/conversational-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -3207,6 +3207,7 @@ var cf;
// initial height not set
this.initialInputHeight = this.inputElement.offsetHeight;
}
this.setFocusOnInput();
};
UserInput.prototype.onFlowUpdate = function (event) {
var _this = this;
Expand Down
2 changes: 1 addition & 1 deletion dist/conversational-form.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions docs/build/cf/ConversationalFormDocs.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ var ConversationalFormDocs = (function () {
}
});
}
this.cf.focus();
setTimeout(function () {
_this.el.classList.remove('menu-toggle');
_this.el.classList.add('cf-toggle');
Expand Down
1 change: 1 addition & 0 deletions docs/build/conversational-form-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ var ConversationalFormDocs = (function () {
}
});
}
this.cf.focus();
setTimeout(function () {
_this.el.classList.remove('menu-toggle');
_this.el.classList.add('cf-toggle');
Expand Down
2 changes: 1 addition & 1 deletion docs/build/conversational-form-docs.min.js

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

2 changes: 2 additions & 0 deletions docs/src/scripts/cf/ConversationalFormDocs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ class ConversationalFormDocs{
});
}

this.cf.focus();

setTimeout(() =>{
this.el.classList.remove('menu-toggle');
this.el.classList.add('cf-toggle')
Expand Down
2 changes: 2 additions & 0 deletions src/scripts/cf/ui/UserInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ namespace cf {
// initial height not set
this.initialInputHeight = this.inputElement.offsetHeight;
}

this.setFocusOnInput();
}

private onFlowUpdate(event: CustomEvent){
Expand Down

0 comments on commit 8ab7c09

Please sign in to comment.