Skip to content

Commit

Permalink
fix: some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nabondance committed Oct 23, 2023
1 parent b8ecb2a commit 9063900
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src-sample/main/default/classes/SampleLookupController.cls
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div class="slds-col">
<lightning-input
type="toggle"
label="Mutli entry lookup"
label="Multi entry lookup"
checked={isMultiEntry}
onchange={handleLookupTypeChange}
></lightning-input>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
}
];
Expand All @@ -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 }) {
Expand All @@ -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;
Expand All @@ -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];
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/main/default/lwc/lookup/lookup.js
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 9063900

Please sign in to comment.