-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Custom Javascript editing/parser in deck.gl visualisations seems to be broken #19349
Closed
3 tasks done
Labels
Comments
Hello, did you add anything into the Extra Data column? |
Hi @AAfghahi , I did not - let me try quickly |
After adding a field to the extra data column, bug behaviour seems the same: Still getting the error in the browser console:
|
Fixed by #18146 |
thanks, @stephenLYZ, will confirm the fix and close the issue! |
This works on v1.5 |
Confirmed the fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Firstly, thanks for such an awesome project!
When trying to add Javascript to customise onClick, Tooltips, etc. in the deck.gl visualisations, the text box in which you enter the code text behaves erratically. It is also unclear what is actually persisted onto the visualisation, it doesn't appear to be the code as entered.
How to reproduce the bug
(I've given instructions for the deck.gl Scatterplot, but seems to apply to all deck.gl visualisations)
Uncaught TypeError: (validationErrors || []).forEach is not a function
Expected results
Text typed in the Javascipt fields in deck.gl visualisations to appear as typed. For the code entered to be executed in the context of the visualisation.
Actual results
Text appearing in field does not match what was typed. Custom JS code doesn't appear to be executed in map.
Following error appearing in browser console per character typing:
Screenshots
This is what appeared after typing a single
d
character:This is after typing
d =>
:Environment
(built off
apache/superset:1.4.0
Docker image tag)1.4.0
python 3.8.12
ENABLE_TEMPLATE_PROCESSING
ALERT_REPORTS
THUMBNAILS
LISTVIEWS_DEFAULT_CARD_VIEW
DASHBOARD_NATIVE_FILTERS
ENABLE_JAVASCRIPT_CONTROLS
(intooltips
config section)Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I'm aware this functionality is fairly old (#4173), so I wonder if maybe a subsequent change has broken the in-browser JS parsing?
The text was updated successfully, but these errors were encountered: