2
0
mirror of https://github.com/gradio-app/gradio.git synced 2025-02-17 11:29:58 +08:00

Fix dataframe line_breaks ()

* fix

* format

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Dawood Khan 2023-10-16 14:36:22 -04:00 committed by GitHub
parent b67115e8e6
commit 3618238960
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions
.changeset
js/dataframe/shared

View File

@ -0,0 +1,6 @@
---
"@gradio/dataframe": patch
"gradio": patch
---
fix:Fix dataframe `line_breaks`

View File

@ -702,6 +702,7 @@
<EditableCell
{value}
{latex_delimiters}
{line_breaks}
datatype={Array.isArray(datatype) ? datatype[j] : datatype}
edit={false}
el={null}
@ -743,6 +744,7 @@
bind:value={_headers[i].value}
bind:el={els[id].input}
{latex_delimiters}
{line_breaks}
edit={header_edit === i}
on:keydown={end_header_edit}
on:dblclick={() => edit_header(i)}
@ -791,6 +793,7 @@
bind:el={els[id].input}
display_value={display_value?.[index]?.[j]}
{latex_delimiters}
{line_breaks}
{editable}
edit={dequal(editing, [index, j])}
datatype={Array.isArray(datatype) ? datatype[j] : datatype}