question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[math-field] Boolean properties (smart-mode, smart-fence, etc) not taking effect

See original GitHub issue

Description

smart-fence smart-mode smart-superscript and similar boolean properties are not working when using <math-field></math-field>. It works just fine when initializing a mathfield using new MathfieldElement().

I have tried the following:

<math-field smart-mode="true" virtual-keyboard-mode="manual"></math-field> <math-field smart-mode=true virtual-keyboard-mode="manual"></math-field> <math-field smart-mode="on" virtual-keyboard-mode="manual"></math-field> <math-field :smart-mode="true" virtual-keyboard-mode="manual"></math-field>

The SDK documentation mentions that it should be ‘true’ or ‘false’, not sure if I am missing something.

Thanks!

Environment

MathLive version 0.65.0

VueJS version 2.6.14

Edit: added in one more scenario I tried.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
arnogcommented, Jul 4, 2021

No, unfortunately not. You have to use setOptions() to modify those attributes.

0reactions
harinair-1commented, Jul 4, 2021

Thanks, I’ll keep an eye on #1022 then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MathLive - CortexJS
The MathfieldElement class provides special properties and methods to control the display and behavior of <math-field> elements.
Read more >
mathlive/CHANGELOG.md at master - GitHub
When using makeSharedVirtualKeyboard() if clicking directly on the virtual keyboard toggle of a mathfield that is not focused, the keyboard would be displayed ......
Read more >
Source - GitHub
Extensible arrows with superscript or subscript would not serialize the ... of the `<math-field>` element that were previously **boolean attributes** are ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found