mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
* Fix android search-bar bug Searching twice for the same item in the search bar leads to a bug where `submit` event won't be raised. This PR fixes https://github.com/NativeScript/NativeScript/issues/5039 * test: include new test page
9 lines
370 B
TypeScript
9 lines
370 B
TypeScript
import { Issue5039ViewModel } from './issue-5039-view-model'
|
|
import { SearchBar } from "tns-core-modules/ui/search-bar";
|
|
import { Page } from "tns-core-modules/ui/page";
|
|
|
|
export function navigatingTo(args) {
|
|
const page = <Page>args.object;
|
|
const searchBar = <SearchBar>page.getViewById("searchBar")
|
|
page.bindingContext = new Issue5039ViewModel(searchBar);
|
|
} |