Khan / Khan/react-balance-text

Change of content is not reflected when nodes or multiple fields are included in the container.

Open
#15 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
34
Forks
8
PR merge metrics
No merged PRs in 30d

Description

## Issue
Change of content is not reflected when nodes or multiple fields are included in the container. They are only reflected when one single plain string (without any other text around it).

## Steps to reproduce
1. Have something more than a single variable in ``, e.g. `Text: {text}`.
2. Modify the `text` variable by triggering any event.

## Expected result
Content of the node change accordingly

## Actual result
Content does not change.

## Reproduction sample
https://codesandbox.io/s/react-balance-text-bug-report-bw58v

Contributor guide

Open the contributing guide

Research direction

Start with the BalanceText component and reproduce the behavior using the linked CodeSandbox sample. Trace how content updates when the container includes plain text plus a variable, or nodes and multiple fields. Done means changed values are reflected in the rendered node in each described case.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.