aurelia-ui-toolkits / aurelia-materialize-bridge

Materialize CSS components for Aurelia
http://aurelia-ui-toolkits.github.io/demo-materialize/
MIT License
156 stars 53 forks source link

Null ref on tooltip detached event #539

Closed bmcdaniels closed 5 years ago

bmcdaniels commented 5 years ago

The detached event in md-tooltip fires destroy on the tooltip instance. The instance is only being created if text is supplied, so when the view is detached it will throw exceptions.

<i md-tooltip="position: bottom; text.bind: tooltipText;" show.one-way="tooltipText" class="far fa-question-circle"></i>

Above is an example of when this can occur. A quick fix was to change show.one-way to if.one-way, but I think both need to be supported.

MaximBalaganskiy commented 5 years ago

Fixed via 293482ca66402ee43f382748ee6a309c82730a20