Skip to content

fix(docs): fix issues in playground page#1727

Open
seungrodotlee wants to merge 4 commits into
toss:mainfrom
seungrodotlee:fix/docs-playground-fn-selection-in-multi-categories
Open

fix(docs): fix issues in playground page#1727
seungrodotlee wants to merge 4 commits into
toss:mainfrom
seungrodotlee:fix/docs-playground-fn-selection-in-multi-categories

Conversation

@seungrodotlee
Copy link
Copy Markdown
Contributor

Summary

This PR fixes three issues in the Playground page.

  1. Fixed an issue where functions with the same name exported from different categories could not be selected correctly in the Playground.
    The root cause was that both the Playground data and selection state used only the function name as the key.
    This was resolved by using a composite key consisting of both the category name and function name.
  2. Fixed an issue where the interface description section at the top of the Playground box would shrink when the code became too long.
    This was caused by an incorrect flex-shrink behavior, and was fixed by properly applying the flex-shrink setting.
  3. Fixed an issue where console.log insertion behaved incorrectly when variable declarations spanned multiple lines.
    Previously, console.log was always inserted on the line immediately following the start of the variable declaration.
    This was updated to correctly detect the end of multi-line variable declarations and insert console.log on the following line.

Changes

Fix Same-Named Function Selection

AS-IS TO-BE
dd.mov
2026-05-20.5.59.15.mov

Fix Description Area Shrinking

AS-IS TO-BE
image image

Fix console.log Insertion for Multi-line Variables

AS-IS TO-BE
image image

@vercel
Copy link
Copy Markdown

vercel Bot commented May 20, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
es-toolkit Ready Ready Preview, Comment May 20, 2026 11:45am

Request Review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant