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

[BUG] Conditional options break when changing a mode value #1955

Closed
superblaubeere27 opened this issue Jan 31, 2024 · 5 comments
Closed

[BUG] Conditional options break when changing a mode value #1955

superblaubeere27 opened this issue Jan 31, 2024 · 5 comments
Assignees
Labels
🐛 bug Something isn't working 👷 development build development build issue 🌑 nextgen

Comments

@superblaubeere27
Copy link
Contributor

LiquidBounce Branch

Nextgen

LiquidBounce Build/Version

latest

Operating System

Linux

Minecraft Version

1.20.4

Describe the bug

I mean what the hell is even that?

Steps to reproduce

  1. Change a mode that has it's own values
  2. ???
  3. Profit

Client Log

-

Screenshots

image

@github-actions github-actions bot added 🌑 nextgen 🐛 bug Something isn't working 👷 development build development build issue labels Jan 31, 2024
@1zun4
Copy link
Member

1zun4 commented Feb 1, 2024

It is a Svelte bug. Will be fixed with #1442

@leumasme
Copy link
Contributor

leumasme commented Feb 2, 2024

Code in Question:

{#if reference.choices[reference.active].value.length > 0}
<div class="settings" transition:fade|local={{duration: 200, easing: sineInOut}}>
{#each reference.choices[reference.active].value as s}
<GenericSetting reference={s} write={write} />
{/each}
</div>
{/if}

Probably fixable using a keyed each block: https://svelte.dev/examples/keyed-each-blocks

@1zun4 1zun4 added this to the 0.1.4 milestone Feb 6, 2024
@1zun4
Copy link
Member

1zun4 commented Feb 6, 2024

Code in Question:

{#if reference.choices[reference.active].value.length > 0}
<div class="settings" transition:fade|local={{duration: 200, easing: sineInOut}}>
{#each reference.choices[reference.active].value as s}
<GenericSetting reference={s} write={write} />
{/each}
</div>
{/if}

Probably fixable using a keyed each block: https://svelte.dev/examples/keyed-each-blocks

Thank you, but either I am doing something wrong or it does not work.
75b658e

@1zun4 1zun4 removed this from the 0.1.4 milestone Feb 7, 2024
@leumasme
Copy link
Contributor

0028576.mp4

Works fine with keyed each block in ChoiceSetting.svelte
Note that the dev setup for the frontend currently does not work at all ever since #1557 (because the code uses the current URL as the websocket URL, which results in the wrong port when using the dev server), so you might have not actually been viewing your modified UI when testing.

@1zun4
Copy link
Member

1zun4 commented Mar 9, 2024

Fixed with the new theme.

@1zun4 1zun4 closed this as completed Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Something isn't working 👷 development build development build issue 🌑 nextgen
Projects
None yet
Development

No branches or pull requests

4 participants