diff --git a/src-sample/main/default/classes/SampleLookupController.cls b/src-sample/main/default/classes/SampleLookupController.cls index 1c6140c..385f2c9 100644 --- a/src-sample/main/default/classes/SampleLookupController.cls +++ b/src-sample/main/default/classes/SampleLookupController.cls @@ -42,7 +42,7 @@ public with sharing class SampleLookupController { ); } - // Optionnaly sort all results on title + // Optionally sort all results on title results.sort(); return results; diff --git a/src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.html b/src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.html index 7189043..31a9843 100644 --- a/src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.html +++ b/src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.html @@ -5,7 +5,7 @@
diff --git a/src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.js b/src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.js index 2ce3a05..38665ee 100644 --- a/src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.js +++ b/src-sample/main/default/lwc/sampleLookupContainer/sampleLookupContainer.js @@ -16,7 +16,7 @@ export default class SampleLookupContainer extends LightningElement { id: 'na', sObjectType: 'na', icon: 'standard:lightning_component', - title: 'Inital selection', + title: 'Initial selection', subtitle: 'Not a valid record' } ]; @@ -28,7 +28,7 @@ export default class SampleLookupContainer extends LightningElement { ]; /** - * Loads recently viewed records and set them as default lookpup search results (optional) + * Loads recently viewed records and set them as default lookup search results (optional) */ @wire(getRecentlyViewed) getRecentlyViewed({ data }) { @@ -55,8 +55,8 @@ export default class SampleLookupContainer extends LightningElement { /** * Handles the lookup search event. - * Calls the server to perform the search and returns the resuls to the lookup. - * @param {event} event `search` event emmitted by the lookup + * Calls the server to perform the search and returns the results to the lookup. + * @param {event} event `search` event emitted by the lookup */ handleLookupSearch(event) { const lookupElement = event.target; @@ -66,7 +66,7 @@ export default class SampleLookupContainer extends LightningElement { lookupElement.setSearchResults(results); }) .catch((error) => { - this.notifyUser('Lookup Error', 'An error occured while searching with the lookup field.', 'error'); + this.notifyUser('Lookup Error', 'An error occurred while searching with the lookup field.', 'error'); // eslint-disable-next-line no-console console.error('Lookup error', JSON.stringify(error)); this.errors = [error]; @@ -75,7 +75,7 @@ export default class SampleLookupContainer extends LightningElement { /** * Handles the lookup selection change - * @param {event} event `selectionchange` event emmitted by the lookup. + * @param {event} event `selectionchange` event emitted by the lookup. * The event contains the list of selected ids. */ // eslint-disable-next-line no-unused-vars diff --git a/src/main/default/lwc/lookup/lookup.js b/src/main/default/lwc/lookup/lookup.js index 912981f..bb151e9 100644 --- a/src/main/default/lwc/lookup/lookup.js +++ b/src/main/default/lwc/lookup/lookup.js @@ -1,7 +1,7 @@ import { LightningElement, api } from 'lwc'; import { NavigationMixin } from 'lightning/navigation'; -const SEARCH_DELAY = 300; // Wait 300 ms after user stops typing then, peform search +const SEARCH_DELAY = 300; // Wait 300 ms after user stops typing then, perform search const KEY_ARROW_UP = 38; const KEY_ARROW_DOWN = 40; @@ -180,7 +180,7 @@ export default class Lookup extends NavigationMixin(LightningElement) { } // eslint-disable-next-line @lwc/lwc/no-async-operation this._searchThrottlingTimeout = setTimeout(() => { - // Send search event if search term is long enougth + // Send search event if search term is long enough if (this._cleanSearchTerm.length >= this.minSearchTermLength) { // Display spinner until results are returned this.loading = true;