microsoft/pxt-calliope

JS is not transferable to blocks / cant open some tutorials

Closed this issue · 1 comments

Describe the bug
JS can`t be converted to Blocks when the input event type is used:

input.onButtonEvent(Button.A, ButtonEvent.Click, function () {
	
})

So some tutorials can`t be opened.

Using the default Block without custom input event works:

input.onButtonEvent(Button.A, input.buttonEventClick(), function () {
})

Expected behavior
Transfer all types of Blocks to JS and back without issues.

Screenshots
image