Skip to content
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

TypeError: Cannot read properties of undefined (reading 'callHandler') #2453

Closed
1 of 2 tasks
guptavirendra opened this issue Dec 10, 2024 · 1 comment
Closed
1 of 2 tasks
Labels
bug Something isn't working

Comments

@guptavirendra
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

on flutter web I am facing this issue

Highcharts warning #15: www.highcharts.com/errors/15/ null null null null TypeError: Cannot read properties of undefined (reading 'callHandler') data:... 96:24 selection https://code.highcharts.com/highcharts.js 9:2533 https://code.highcharts.com/highcharts.js 9:2511 j https://code.highcharts.com/highcharts.js 9:219252 transform https://code.highcharts.com/highcharts.js 9:136902 drop https://code.highcharts.com/highcharts.js 9:141988 onDocumentMouseUp

Expected Behavior

Due to this, I am unable to handle zoom feature of highcharts.

Steps with code example to reproduce

_controller?.addJavaScriptHandler(
handlerName: 'handlerFooWithArgs',
callback: (args) {
print('args: $args');
if (widget.selectedArguments != null) {
widget.selectedArguments!(args);
}

                    // it will print: [1, true, [bar, 5], {foo: baz}, {bar: bar_value, baz: baz_value}]
                  });
            },

Stacktrace/Logs

[_completeWithValue]
../dart-sdk/lib/async/future_impl.dart 736:7
callback
../dart-sdk/lib/async/schedule_microtask.dart 40:11
_microtaskLoop
../dart-sdk/lib/async/schedule_microtask.dart 49:5
_startMicrotaskLoop
../dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7

Highcharts warning #15: www.highcharts.com/errors/15/
null
null
null
null
TypeError: Cannot read properties of undefined (reading 'callHandler')
data:... 96:24 selection
https://code.highcharts.com/highcharts.js 9:2533
https://code.highcharts.com/highcharts.js 9:2511 j
https://code.highcharts.com/highcharts.js 9:219252 transform
https://code.highcharts.com/highcharts.js 9:136902 drop
https://code.highcharts.com/highcharts.js 9:141988 onDocumentMouseUp

Flutter version

Flutter 3.24.3 • channel stable • https://github.com/flutter/flutter.git Framework • revision 2663184aa7 (2 months ago) • 2024-09-11 16:27:48 -0500 Engine • revision 36335019a8 Tools • Dart 3.5.3 • DevTools 2.37.3

Operating System, Device-specific and/or Tool

mac os

Plugin version

flutter_inappwebview: ^6.1.5

Additional information

No response

Self grab

  • I'm ready to work on this issue!
@guptavirendra guptavirendra added the bug Something isn't working label Dec 10, 2024
@pichillilorenzo
Copy link
Owner

Please, read the documentation before posting an issue. Currently, web platform doesn’t support JavaScript handlers.
With the next plugin version 6.2.0, it should be available, but, as always on web platform, it will require same origin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants