rikulo / bootjack

Twitter Bootstrap ported in Dart.
https://quire.io
Apache License 2.0
88 stars 15 forks source link

Modal.show() gives error 'HtmlDocument' is not a subtype of type 'Element' of 'elem' #24

Closed Turbots closed 10 years ago

Turbots commented 10 years ago

If I create a simple Bootstrap modal like this:

Modal modal = new Modal(querySelector("#modal");
modal.show();

it fails on the second line with the following error:

'HtmlDocument' is not a subtype of type 'Element' of 'elem' (package:dquery/src/event.dart:672)

The same error occurs when I try to close the modal afterwards:

'HtmlDocument' is not a subtype of type 'Element' of 'elem' (package:dquery/src/event.dart:678)

What could be the problem here? Am I missing something?

sigi77 commented 10 years ago

The same behavior in my project. I'm not able to close modals anymore.

Turbots commented 10 years ago

I've fixed the bug and created a pull request: link