Focus rect regression

Hi, somewhere between 4.15.0 and 4.16.3 there’s a regression affecting the focus-rect attribute. It seems this._context is now undefined inside attributeChangedCallback() which it wasn’t in earlier versions.

Hello krizzl0r,

Thank you for bringing this issue to our attention regarding the focus rect regression between versions 4.15.0 and 4.16.3 of Needle Engine.

To better understand and help resolve the issue, could you please provide the following information:

  1. Exact Versions: Are you specifically comparing 4.15.0 and 4.16.3? If not, which versions were tested before the regression occurred?

  2. Code Example: Could you share the code snippet or a simplified example that demonstrates the issue? It would be helpful to see how you are using the focus-rect attribute in both versions.

  3. Environment Details: Are you working in a specific environment or setup? For example, are you running this in a web browser or using a particular IDE?

  4. Steps to Reproduce: Please provide detailed steps on how to reproduce the issue. This will help us understand the context and environment better.

  5. Expected Behavior: What was the behavior in version 4.15.0 and what is the current behavior in version 4.16.3?

  6. Current Behavior: Can you describe the current behavior that is different from the expected one? Any error messages or logs would also be helpful.

Based on the information you provide, I can assist you in identifying the cause of the regression and help you find a solution or workaround.

Thanks for your help!

Sources: Needle Engine API (59%), Needle Engine Docs (58%), Needle Engine API (55%), [Needle Engine API](Needle Engine (53%)

1 replies left - Become PRO for more replies.
Reply to this post directly if you need further help (bottom right button)

Hi thanks for reporting!

In the meantime you can set it via onStart hook for example

onStart(ctx => {
  ctx.setCameraFocusRect(<div_or_DOMRect>)
});