It correctly selects the contents of the div for code.name, code.currency, code.type, code.a and code.e. However, for code.b, code.c, code.d I can’t even click into the custom element.
@jeremyholt can you be more specific about what is working and what isn’t? From your latest post I assume text selection works, but you can’t edit the content. Am I right? And repeating @bigopon - please provide gist. Try to share the most simple gist that reproduces the problem.
I’m sure I’m just missing something really obvious.
I would also add that this is the first time I’ve ever seen/used code that directly speaks to window or document - goes to show how aurelia has kept me away from the dom for so long!
For some reason this is what I see when I run yarn:
yarn install v1.9.4
[1/4] Resolving packages...
[2/4] Fetching packages...
[---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------] 0/738(node:26012) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
error An unexpected error occurred: "https://codeload.github.com/requirejs/text/tar.gz/d04de4ffd7bf5ba6cb80cdca2d40d4f6f52a1b1f: self signed certificate in certificate chain".
info If you think this is a bug, please open a bug report with the information provided in "d:\\projects\\jeremy-holt\\SelectTextIssue2\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
@jeremyholt I highly recommend to experiment with a couple. From reading here I learned about http://codesandbox.io/ that you can use to share Aurelia samples. For comparison, https://stackblitz.com provides an incredible platform for sharing Angular code. It’s practically VS Code on the web.
When you share your example, try to shrink it to minimum code that demonstrates the problem/question you wish to share and get help on.