Create a search bar with showCancel property set to false. It works fine and does not show 'cancel' button when it is added to the window. But when the searchBar is added to the table view the showCancel set to false does not work and shows the cancel button. This works fine on android.
1. Load the below app.js
2. Try adding the search bar directly to window and see the result.
3. Try adding it to the tableView and then see the result.
Expected Result: Show cancel property should work fine in both cases.
Actual Result: It does not work fine when search bar is added to the tableView.