@Lyncheese wrote:
I'm developing an app using vue.js and go.js.
So far so good.
But now I need a dropdown box on my panel.
I follow this example https://gojs.net/latest/samples/customTextEditingTool.htmlAnd here is my snippet code
var myScenarioDiagram = $(go.Diagram, this.$el, { mouseDrop: this.onDroppedBox }, { "toolManager.mouseWheelBehavior": go.ToolManager.WheelZoom, allowDrop: true, initialAutoScale: go.Diagram.Uniform, "textEditingTool.defaultTextEditor": window.TextEditorSelectBox, "undoManager.isEnabled": true, layout: $(go.LayeredDigraphLayout, { direction: 90, layerSpacing: 6, columnSpacing: 6, setsPortSpots: false }) } );
But I got this error when ever it reached "textEditingTool.defaultTextEditor": window.TextEditorSelectBox,
go.js?3c55:666 Uncaught TypeError: Cannot read property 'style' of undefined
at hk.doActivate (go.js?3c55:666)
at ih.doMouseUp (go.js?3c55:685)
at D.doMouseUp (go.js?3c55:757)
at HTMLCanvasElement.El.a.Pn (go.js?3c55:967)Is there any mistake or mis-doing I made ?
Posts: 1
Participants: 1