[math-field] Boolean properties (smart-mode, smart-fence, etc) not taking effect
See original GitHub issueDescription
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:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
No, unfortunately not. You have to use
setOptions()
to modify those attributes.Thanks, I’ll keep an eye on #1022 then.