mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
fix some comments
This commit is contained in:
@ -377,12 +377,10 @@ export class Searchbar implements ComponentInterface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether or not the cancel button should visible onscreen
|
* Determines whether or not the cancel button should be visible onscreen.
|
||||||
* Cancel button should be shown if one of the three conditions applies:
|
* Cancel button should be shown if one of two conditions applies:
|
||||||
* 1. The user has called showCancel(), setting forceShowCancel = true
|
* 1. `showCancelButton` is set to `always`.
|
||||||
* 2. The user has focused the searchbar
|
* 2. `showCancelButton` is set to `focus`, and the searchbar has been focused.
|
||||||
* 3. The user has `showCancelButton` set to `persist` and the searchbar has
|
|
||||||
* already been focused at least once
|
|
||||||
*/
|
*/
|
||||||
private shouldShowCancelButton(): boolean {
|
private shouldShowCancelButton(): boolean {
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user