Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: some typos #147

Merged
merged 1 commit into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading