New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TextAreaElement' is not a subtype of type 'InputElement' #23

Closed
joaobiriba opened this Issue Sep 1, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@joaobiriba

joaobiriba commented Sep 1, 2015

Calling a change on a textarea generates

Exception: Uncaught Error: type 'TextAreaElement' is not a subtype of type 'InputElement' in type cast.

/// Update text field value.
void change(final String value) {
if (value != null && value != _relaxedInput.value) {

        int selStart = (_relaxedInput as dom.InputElement).selectionStart;
        int selEnd = (_relaxedInput as dom.InputElement).selectionStart;

        _relaxedInput.value = value;

        (_relaxedInput as dom.InputElement).setSelectionRange(selStart,selEnd);
    }

    _updateClasses();
}

@joaobiriba joaobiriba changed the title from TextArea is not anMaterialTextField to TextArea is not a MaterialTextField Sep 1, 2015

@joaobiriba joaobiriba changed the title from TextArea is not a MaterialTextField to TextAreaElement' is not a subtype of type 'InputElement' Sep 1, 2015

MikeMitterer added a commit that referenced this issue Sep 2, 2015

@MikeMitterer

This comment has been minimized.

Show comment
Hide comment
@MikeMitterer

MikeMitterer Sep 2, 2015

Owner

Sorry - _relaxedInput was not as relaxed as expected. Thanks for your report!

Owner

MikeMitterer commented Sep 2, 2015

Sorry - _relaxedInput was not as relaxed as expected. Thanks for your report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment