From 43ed2b0d1d6c19b063693624a31ad5220cad9774 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Tue, 11 Jun 2019 12:40:46 -0400 Subject: [PATCH] fix some comments --- core/src/components/searchbar/searchbar.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/core/src/components/searchbar/searchbar.tsx b/core/src/components/searchbar/searchbar.tsx index 9131a7f4e5..761918eb31 100644 --- a/core/src/components/searchbar/searchbar.tsx +++ b/core/src/components/searchbar/searchbar.tsx @@ -377,12 +377,10 @@ export class Searchbar implements ComponentInterface { } /** - * Determines whether or not the cancel button should visible onscreen - * Cancel button should be shown if one of the three conditions applies: - * 1. The user has called showCancel(), setting forceShowCancel = true - * 2. The user has focused the searchbar - * 3. The user has `showCancelButton` set to `persist` and the searchbar has - * already been focused at least once + * Determines whether or not the cancel button should be visible onscreen. + * Cancel button should be shown if one of two conditions applies: + * 1. `showCancelButton` is set to `always`. + * 2. `showCancelButton` is set to `focus`, and the searchbar has been focused. */ private shouldShowCancelButton(): boolean { if (