mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-18 05:18:39 +08:00
13 lines
419 B
TypeScript
13 lines
419 B
TypeScript
import { EventData } from '@nativescript/core/data/observable';
|
|
import { Page } from '@nativescript/core/ui/page';
|
|
import { SearchBar } from '@nativescript/core/ui/search-bar';
|
|
import { isAndroid } from '@nativescript/core/platform';
|
|
|
|
export function onLoaded(args: EventData) {
|
|
var page = <Page>args.object;
|
|
var searchBar = <SearchBar>page.getViewById('sb');
|
|
if (isAndroid) {
|
|
searchBar.android.clearFocus();
|
|
}
|
|
}
|