Skip to content

Commit

Permalink
fix: disable spell check to fix glitchy query typing animation
Browse files Browse the repository at this point in the history
  • Loading branch information
NikkiMeganMoore committed Oct 12, 2022
1 parent b4a5608 commit 3cd07ba
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
Binary file modified example/package/react-autoql-0.0.0-semantically-released.tgz
Binary file not shown.
2 changes: 2 additions & 0 deletions src/components/Dashboard/DashboardTile/DashboardTile.js
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ export class DashboardTile extends React.Component {
data-tip="Query"
data-for="react-autoql-dashboard-toolbar-btn-tooltip"
data-place="bottom"
spellCheck={false}
onChange={this.onQueryInputChange}
onKeyDown={this.onQueryTextKeyDown}
onFocus={() => this.setState({ isQueryInputFocused: true })}
Expand Down Expand Up @@ -877,6 +878,7 @@ export class DashboardTile extends React.Component {
this.state.isSecondQueryInputOpen ? 'open' : ''
}`}
value={this.state.secondQuery}
spellCheck={false}
onChange={this.onSecondQueryInputChange}
onKeyDown={this.onSecondQueryTextKeyDown}
onBlur={(e) => {
Expand Down
1 change: 1 addition & 0 deletions src/components/ExploreQueries/ExploreQueries.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ export class ExploreQueries extends React.Component {
value={this.state.inputValue}
onChange={this.onInputChange}
onKeyPress={this.onKeyPress}
spellCheck={false}
ref={(ref) => (this.inputRef = ref)}
data-test="explore-queries-input-bar"
autoFocus
Expand Down
1 change: 1 addition & 0 deletions src/components/QueryInput/QueryInput.js
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ class QueryInput extends React.Component {
onKeyDown: this.onKeyDown,
value: this.state.inputValue,
onFocus: this.moveCaretAtEnd,
spellCheck: false,
autoFocus: true,
}

Expand Down

0 comments on commit 3cd07ba

Please sign in to comment.