tvjsx / trading-vue-js

💹 Hackable charting lib for traders. You can draw literally ANYTHING on top of candlestick charts. [Not Maintained]
https://tvjsx.github.io/trading-vue-demo/
MIT License
2.09k stars 638 forks source link

[Bug] Toolbar locks up on interval change #132

Closed smcgovern closed 4 years ago

smcgovern commented 4 years ago

Description

Depending on certain actions taken in certain orders it is possible for the toolbar to become locked up. There are workarounds to unlock it and to prevent it.

Example: https://tvjs.io/play/?a=nqqvzzmi

To cause the bug, select an interval to load from the the dropdown at the top left, if you attempt to use any toolbar tool once the changeInterval() is called action your toolbar will be locked up.

Workarounds

If you activate a tool besides the crosshair tool prior to changing the interval, when the chart is redrawn the active tool is reset to crosshairs and the toolbar is not locked.

Another way to unlock it is if you have drawn items on the chart and the toolbar is locked up, you can select a drawn item then deselect it and the toolbar is unlocked.

Data Sample (if applicable)

The data sample must follow the current data structure.

Console errors (if any)

None

Additional Info

trading-vue-js 0.6.1

C451 commented 4 years ago

Fixed in 0.7.0 (the next version)