Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Inline Select: Type Mismatch with Properties #115

Closed
3 of 7 tasks
ObsidianTTRPGProject opened this issue Sep 24, 2023 · 1 comment
Closed
3 of 7 tasks

Inline Select: Type Mismatch with Properties #115

ObsidianTTRPGProject opened this issue Sep 24, 2023 · 1 comment
Labels
bug Undesired behavior caused by this plugin

Comments

@ObsidianTTRPGProject
Copy link

  • The Plugin is up to date
  • Obsidian is up to date

Describe the bug
I have an InlineSelect field that works. The properties is changed when the InlineField is changed. However Properties reports it as a Type Mismatch and this causes any calculations that use that field to fail.

Select Travel Speed: INPUT[inlineSelect(option(0.666667), option(1.0), option(1.333333), showcase):SpeedMultiplier]

image

To Reproduce
Steps to reproduce the behavior:

  1. Create now with SpeedMultiplier Property as type Number
  2. Add InlineSelect to note: INPUT[inlineSelect(option(0.666667), option(1.0), option(1.333333), showcase):SpeedMultiplier]
  3. Change value using InlineSelect
  4. Property updates however Obsidian reports Type Mismatch.
  5. Click ! to Save the change of the Type.
  6. Reload note to fix calculations.

image

Expected behavior
Value should change and know that it is a number.

Screenshots
See above

Occurs on

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Plugin version
0.6.1

Additional context
I love MetaBind

@ObsidianTTRPGProject ObsidianTTRPGProject added the bug Undesired behavior caused by this plugin label Sep 24, 2023
@mProjectsCode
Copy link
Owner

There was a small bug in the inline select code that caused the values to be stringified, since i can only pass strings as values to obsidians inline select prefab.

mProjectsCode added a commit that referenced this issue Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behavior caused by this plugin
Projects
None yet
Development

No branches or pull requests

2 participants