mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(searchbar): positionElements to assign input mode fixes #8855
This commit is contained in:
@ -239,7 +239,7 @@ export class Searchbar extends Ion {
|
||||
let shouldAlignLeft = (!isAnimated || (this._value && this._value.toString().trim() !== '') || this._sbHasFocus === true);
|
||||
this._shouldAlignLeft = shouldAlignLeft;
|
||||
|
||||
if (this._config.get('mode') !== 'ios') {
|
||||
if (this._mode !== 'ios') {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -29,6 +29,12 @@
|
||||
<h5 padding-left> Search - Value passed </h5>
|
||||
<ion-searchbar value="mysearch" showCancelButton (ionInput)="triggerInput($event)" (ionCancel)="onCancelSearchbar($event)" (ionClear)="onClearSearchbar($event)" cancelButtonText="Really Long Cancel" color="dark"></ion-searchbar>
|
||||
|
||||
<h5 padding-left> Search - Mode iOS passed </h5>
|
||||
<ion-searchbar mode="ios" animated="true" showCancelButton placeholder="Search"></ion-searchbar>
|
||||
|
||||
<h5 padding-left> Search - Mode MD passed </h5>
|
||||
<ion-searchbar mode="md" animated="true" showCancelButton placeholder="Search"></ion-searchbar>
|
||||
|
||||
<p padding>
|
||||
<button ion-button block (click)="changeValue()">Change Value</button>
|
||||
</p>
|
||||
|
Reference in New Issue
Block a user