mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 04:14:21 +08:00
fix(): updated jsx due to type errors.
This commit is contained in:
@ -350,27 +350,27 @@ export class Searchbar {
|
|||||||
<div class="searchbar-search-icon"></div>
|
<div class="searchbar-search-icon"></div>
|
||||||
<input
|
<input
|
||||||
class="searchbar-input"
|
class="searchbar-input"
|
||||||
oninput={this.inputChanged.bind(this)}
|
onInput={this.inputChanged.bind(this)}
|
||||||
onblur={this.inputBlurred.bind(this)}
|
onBlur={this.inputBlurred.bind(this)}
|
||||||
onfocus={this.inputFocused.bind(this)}
|
onFocus={this.inputFocused.bind(this)}
|
||||||
placeholder={this.placeholder}
|
placeholder={this.placeholder}
|
||||||
type={this.type}
|
type={this.type}
|
||||||
value={this.value}
|
value={this.value}
|
||||||
autocomplete={this.autocomplete}
|
autoComplete={this.autocomplete}
|
||||||
autocorrect={this.autocorrect}
|
autoCorrect={this.autocorrect}
|
||||||
spellcheck={this.spellcheck}/>
|
spellCheck={this.spellcheck}/>
|
||||||
<ion-button
|
<ion-button
|
||||||
clear
|
clear
|
||||||
class="searchbar-clear-icon"
|
class="searchbar-clear-icon"
|
||||||
onclick={this.clearInput.bind(this)}
|
onClick={this.clearInput.bind(this)}
|
||||||
onmousedown={this.clearInput.bind(this)}>
|
onMousedown={this.clearInput.bind(this)}>
|
||||||
</ion-button>
|
</ion-button>
|
||||||
</div>,
|
</div>,
|
||||||
<ion-button
|
<ion-button
|
||||||
tabindex={this.activated ? 1 : -1}
|
tabindex={this.activated ? 1 : -1}
|
||||||
clear
|
clear
|
||||||
onclick={this.cancelSearchbar.bind(this)}
|
onClick={this.cancelSearchbar.bind(this)}
|
||||||
onmousedown={this.cancelSearchbar.bind(this)}
|
onMousedown={this.cancelSearchbar.bind(this)}
|
||||||
class="searchbar-ios-cancel">
|
class="searchbar-ios-cancel">
|
||||||
{this.cancelButtonText}
|
{this.cancelButtonText}
|
||||||
</ion-button>
|
</ion-button>
|
||||||
|
@ -164,14 +164,12 @@ export class Toggle implements BooleanInputComponent {
|
|||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class='toggle-cover'
|
class='toggle-cover'
|
||||||
attrs={{
|
id={this.id}
|
||||||
'id': this.id,
|
aria-checked={this.checked ? 'true' : false}
|
||||||
'aria-checked': this.checked ? 'true' : false,
|
aria-disabled={this.disabled ? 'true' : false}
|
||||||
'aria-disabled': this.disabled ? 'true' : false,
|
aria-labelledby={this.labelId}
|
||||||
'aria-labelledby': this.labelId,
|
role='checkbox'
|
||||||
'role': 'checkbox',
|
tabIndex={0}
|
||||||
'tabindex': 0
|
|
||||||
}}
|
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
</ion-gesture>
|
</ion-gesture>
|
||||||
|
Reference in New Issue
Block a user