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

View field with text(renderMarkdown) for a button puts updated value in new row #502

Open
4 of 8 tasks
Acenoid opened this issue Jan 24, 2025 · 1 comment
Open
4 of 8 tasks
Labels
bug Undesired behavior caused by this plugin

Comments

@Acenoid
Copy link

Acenoid commented Jan 24, 2025

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.1

This Issue Occurs on

  • Windows
  • Linux
  • macOS
  • Android
  • iOS

Debug Info

SYSTEM INFO:
	Obsidian version: v1.7.7
	Installer version: v1.4.13
	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: 0
	Restricted mode: off
	Plugins installed: 1
	Plugins enabled: 1
		1: Meta Bind v1.3.1

RECOMMENDATIONS:
	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

  1. A view field with text(renderMarkdown) puts updated value into a new row instead of overwriting itself
  2. The number is shown only temporarily - after reopening the note the correct value will be shown.

Image

Steps to Reproduce

Example to reproduce the issue.

---
Version: 0
---

works:
`VIEW[{Version}][text()]`

does not work:
`VIEW[**<center>{Version}</center>**][text(renderMarkdown)]`

Button:  `BUTTON[Version-increment]`

Button Code: 
~~~meta-bind-button
label: "+1"
id: Version-increment
hidden: true
style: primary
actions:
  - type: updateMetadata
    bindTarget: Version
    evaluate: true
    value: 1 + getMetadata('Version')
tooltip: Neue Version
~~~

Expected Behavior

  1. If RenderMarkdown is applied , the button should still updateMetadata and not add extra lines to the note (temporarily).
@Acenoid Acenoid added the bug Undesired behavior caused by this plugin label Jan 24, 2025
@mProjectsCode
Copy link
Owner

Thanks. Fixed in 1.3.3

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