mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-22 21:48:42 +08:00
fix(toast): proper type casting
This commit is contained in:
@ -11,7 +11,7 @@ export default function(
|
||||
const baseAnimation = new Animation();
|
||||
|
||||
const wrapperAnimation = new Animation();
|
||||
const wrapperEle = <HTMLElement> baseElm.querySelector('.toast-wrapper');
|
||||
const wrapperEle = baseElm.querySelector('.toast-wrapper') as HTMLElement
|
||||
wrapperAnimation.addElement(wrapperEle);
|
||||
|
||||
switch (position) {
|
||||
|
@ -11,7 +11,7 @@ export default function(
|
||||
const baseAnimation = new Animation();
|
||||
|
||||
const wrapperAnimation = new Animation();
|
||||
const wrapperEle = <HTMLElement> baseElm.querySelector('.toast-wrapper');
|
||||
const wrapperEle = baseElm.querySelector('.toast-wrapper') as HTMLElement
|
||||
wrapperAnimation.addElement(wrapperEle);
|
||||
switch (position) {
|
||||
case 'top':
|
||||
|
Reference in New Issue
Block a user