firepad icon indicating copy to clipboard operation
firepad copied to clipboard

enableLiveAutocompletion doesn't work as expected with Ace Editor when firepad is integrated.

Open mbsyaswanth opened this issue 5 years ago • 0 comments

Version info

Firebase: 7.6.2 , cdn - https://www.gstatic.com/firebasejs/7.6.2/firebase.js

Firepad: v1.5.9

Ace: 1.2.5 , cdn - https://cdnjs.cloudflare.com/ajax/libs/ace/1.2.5/ace.js

using (React Ace)[https://github.com/securingsincity/react-ace/blob/master/docs/Ace.md] for ace editor and passing its instance to firepad. Not using the above cdn for creating ace editor instance.

Test case

Steps to reproduce

initialize firepad with ace editor, and pass enableLiveAutocompletion : true to it.

Use (React Ace)[https://github.com/securingsincity/react-ace/blob/master/docs/Ace.md] for ace editor and pass its instance to firepad. Not using the above cdn for creating ace editor instance. we can get ReactAce instance from onLoad function.

Expected behavior

when typing in the editor, expect to get auto suggestions. Try this here - http://securingsincity.github.io/react-ace/ with enableLiveAutocompletion checkbox enabled.

Actual behavior

when i enter g, then press space, then another g adds automatically. no suggestions are seen. multiple letters are being typed on single letter input.

mbsyaswanth avatar Apr 08 '20 05:04 mbsyaswanth