Skip to content

VIEW behaves incorrect in some case in live-preview-mode #540

@Cube707

Description

@Cube707

Please fill out these Check-boxes

  • I checked for existing similar issues
  • I checked that the plugin is up to date
  • The issue persists with all other plugins and themes disabled

Plugin Version

1.3.4-canary.20250319T110954

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

SYSTEM INFO:
	Obsidian version: v1.8.9
	Installer version: v1.5.12
	Operating system: Windows 10 Pro 10.0.19045
	Login status: not logged in
	Language: en
	Insider build toggle: off
	Live preview: on
	Base theme: adapt to system
	Community theme: none
	Snippets enabled: 1
	Restricted mode: off
	Plugins installed: 4
	Plugins enabled: 4
		1: JS Engine v0.3.1
		2: Markdown Attributes v1.2.2
		3: Meta Bind v1.3.4-canary.20250319T110954
		4: BRAT v1.0.6

RECOMMENDATIONS:
	Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
	Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the Issue

viewing a frontmatter property inside a table returned undefine when in live-preview mode, but works a expected in reading view.

Outside of tables everything works a expected.

live preview reading view
Image Image

Steps to Reproduce

Use the following file:

---
foo: 34
bar: 1
buzz:
  prop: 42
---

## Normal frontmatter attribute

`INPUT[slider:foo]`

| Foo   | Bar           |
| ----- | ------------- |
| Attr: | `VIEW[{foo}]` |

outside table: `VIEW[{foo}]`

## Access a member

`INPUT[slider:buzz.prop]`

| Foo   | Bar                 |
| ----- | ------------------- |
| Attr: | `VIEW[{buzz.prop}]` |

outside table: `VIEW[{buzz.prop}]`

## Using a function on it

`INPUT[slider(maxValue(1),stepSize(0.25)):bar]`

| Foo   | Bar                   |
| ----- | --------------------- |
| Attr: | `VIEW[floor({bar})]`  |

outside table: `VIEW[floor({bar})]`

Expected Behavior

both modes should behave the same.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream bugUndesired behavior caused by a bug in Obsidian or another plugin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions