Fix for undefined className prop issue in Editable component (#2855)

* Fixed the css issue in emptyCardButton for firefox browser

* Eslint fix

* Added the default value to className prop for Editable component

* Updated snapshot

* Fixes

* Reverted the changes back

* Removed the unwanted changes

Co-authored-by: Rajat Dabade <rajat@Rajats-MacBook-Pro.local>
This commit is contained in:
Rajat Dabade 2022-04-25 21:10:56 +05:30 committed by GitHub
parent cda064a83a
commit edd143b7e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 121 additions and 121 deletions

View file

@ -164,7 +164,7 @@ exports[`components/centerPanel return centerPanel and click on card to show car
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -356,7 +356,7 @@ exports[`components/centerPanel return centerPanel and click on card to show car
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -408,7 +408,7 @@ exports[`components/centerPanel return centerPanel and click on card to show car
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -717,7 +717,7 @@ exports[`components/centerPanel return centerPanel and press touch 1 with readon
class="viewSelector"
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled View"
readonly=""
spellcheck="true"
@ -856,7 +856,7 @@ exports[`components/centerPanel return centerPanel and press touch 1 with readon
class="Label propColorOrange "
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="New Select"
readonly=""
spellcheck="true"
@ -892,7 +892,7 @@ exports[`components/centerPanel return centerPanel and press touch 1 with readon
i
</div>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled"
readonly=""
spellcheck="true"
@ -932,7 +932,7 @@ exports[`components/centerPanel return centerPanel and press touch 1 with readon
i
</div>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled"
readonly=""
spellcheck="true"
@ -983,7 +983,7 @@ exports[`components/centerPanel return centerPanel and press touch 1 with readon
class="Label propColorBlue "
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="New Select"
readonly=""
spellcheck="true"
@ -1195,7 +1195,7 @@ exports[`components/centerPanel return centerPanel and press touch ctrl+d for on
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -1451,7 +1451,7 @@ exports[`components/centerPanel return centerPanel and press touch ctrl+d for on
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -1506,7 +1506,7 @@ exports[`components/centerPanel return centerPanel and press touch ctrl+d for on
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -1545,7 +1545,7 @@ exports[`components/centerPanel return centerPanel and press touch ctrl+d for on
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -1595,7 +1595,7 @@ exports[`components/centerPanel return centerPanel and press touch ctrl+d for on
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -1826,7 +1826,7 @@ exports[`components/centerPanel return centerPanel and press touch del for one c
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -2082,7 +2082,7 @@ exports[`components/centerPanel return centerPanel and press touch del for one c
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -2137,7 +2137,7 @@ exports[`components/centerPanel return centerPanel and press touch del for one c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -2176,7 +2176,7 @@ exports[`components/centerPanel return centerPanel and press touch del for one c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -2226,7 +2226,7 @@ exports[`components/centerPanel return centerPanel and press touch del for one c
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -2457,7 +2457,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -2713,7 +2713,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -2768,7 +2768,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -2807,7 +2807,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -2857,7 +2857,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -3088,7 +3088,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -3344,7 +3344,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -3399,7 +3399,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -3438,7 +3438,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -3488,7 +3488,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for one c
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -3719,7 +3719,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -3975,7 +3975,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -4030,7 +4030,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -4069,7 +4069,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -4119,7 +4119,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -4350,7 +4350,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -4606,7 +4606,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -4661,7 +4661,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -4700,7 +4700,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -4750,7 +4750,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -4981,7 +4981,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -5237,7 +5237,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -5292,7 +5292,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -5331,7 +5331,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -5381,7 +5381,7 @@ exports[`components/centerPanel return centerPanel and press touch esc for two c
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -5612,7 +5612,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -5868,7 +5868,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -5923,7 +5923,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -5962,7 +5962,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -6012,7 +6012,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -6243,7 +6243,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -6499,7 +6499,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -6554,7 +6554,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -6593,7 +6593,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card2"
@ -6643,7 +6643,7 @@ exports[`components/centerPanel return centerPanel and select one card and click
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -6874,7 +6874,7 @@ exports[`components/centerPanel should match snapshot for Gallery 1`] = `
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -7183,7 +7183,7 @@ exports[`components/centerPanel should match snapshot for Kanban 1`] = `
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -7375,7 +7375,7 @@ exports[`components/centerPanel should match snapshot for Kanban 1`] = `
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -7427,7 +7427,7 @@ exports[`components/centerPanel should match snapshot for Kanban 1`] = `
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -7675,7 +7675,7 @@ exports[`components/centerPanel should match snapshot for Kanban, not shared 1`]
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -7867,7 +7867,7 @@ exports[`components/centerPanel should match snapshot for Kanban, not shared 1`]
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -7919,7 +7919,7 @@ exports[`components/centerPanel should match snapshot for Kanban, not shared 1`]
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -8214,7 +8214,7 @@ exports[`components/centerPanel should match snapshot for Table 1`] = `
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -8470,7 +8470,7 @@ exports[`components/centerPanel should match snapshot for Table 1`] = `
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -8525,7 +8525,7 @@ exports[`components/centerPanel should match snapshot for Table 1`] = `
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="card1"
@ -8575,7 +8575,7 @@ exports[`components/centerPanel should match snapshot for Table 1`] = `
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"

View file

@ -431,7 +431,7 @@ exports[`src/components/workspace return workspace and showcard 1`] = `
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -623,7 +623,7 @@ exports[`src/components/workspace return workspace and showcard 1`] = `
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="value 2"
@ -992,7 +992,7 @@ exports[`src/components/workspace return workspace readonly and showcard 1`] = `
class="viewSelector"
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled View"
readonly=""
spellcheck="true"
@ -1071,7 +1071,7 @@ exports[`src/components/workspace return workspace readonly and showcard 1`] = `
class="Label propColorBlue "
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="New Select"
readonly=""
spellcheck="true"
@ -1648,7 +1648,7 @@ exports[`src/components/workspace should match snapshot 1`] = `
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -1840,7 +1840,7 @@ exports[`src/components/workspace should match snapshot 1`] = `
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="value 2"
@ -2209,7 +2209,7 @@ exports[`src/components/workspace should match snapshot with readonly 1`] = `
class="viewSelector"
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled View"
readonly=""
spellcheck="true"
@ -2288,7 +2288,7 @@ exports[`src/components/workspace should match snapshot with readonly 1`] = `
class="Label propColorBlue "
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="New Select"
readonly=""
spellcheck="true"

View file

@ -47,7 +47,7 @@ exports[`components/boardTemplateSelector/boardTemplateSelectorPreview should ma
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="View"
@ -239,7 +239,7 @@ exports[`components/boardTemplateSelector/boardTemplateSelectorPreview should ma
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -291,7 +291,7 @@ exports[`components/boardTemplateSelector/boardTemplateSelectorPreview should ma
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"

View file

@ -11,7 +11,7 @@ exports[`components/content/checkboxElement should change title 1`] = `
value="off"
/>
<input
class="Editable undefined"
class="Editable "
placeholder="Edit text..."
spellcheck="true"
title="new title"
@ -33,7 +33,7 @@ exports[`components/content/checkboxElement should match snapshot 1`] = `
value="off"
/>
<input
class="Editable undefined"
class="Editable "
placeholder="Edit text..."
spellcheck="true"
title="test-title"
@ -55,7 +55,7 @@ exports[`components/content/checkboxElement should match snapshot when read only
value="off"
/>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Edit text..."
readonly=""
spellcheck="true"
@ -77,7 +77,7 @@ exports[`components/content/checkboxElement should toggle value 1`] = `
value="on"
/>
<input
class="Editable undefined"
class="Editable "
placeholder="Edit text..."
spellcheck="true"
title="test-title"

View file

@ -11,7 +11,7 @@ exports[`components/content/contentElement should match snapshot for checkbox ty
value="off"
/>
<input
class="Editable undefined"
class="Editable "
placeholder="Edit text..."
spellcheck="true"
title="test-title"

View file

@ -24,7 +24,7 @@ exports[`src/component/kanban/kanban return kanban and change title on KanbanCol
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="New Q1"
@ -76,7 +76,7 @@ exports[`src/component/kanban/kanban return kanban and change title on KanbanCol
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -310,7 +310,7 @@ exports[`src/component/kanban/kanban return kanban and click on KanbanCalculatio
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -523,7 +523,7 @@ exports[`src/component/kanban/kanban return kanban and click on KanbanCalculatio
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -757,7 +757,7 @@ exports[`src/component/kanban/kanban should match snapshot 1`] = `
class="Label propColorOrange "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q1"
@ -809,7 +809,7 @@ exports[`src/component/kanban/kanban should match snapshot 1`] = `
class="Label propColorBlue "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Q2"
@ -1043,7 +1043,7 @@ exports[`src/component/kanban/kanban should match snapshot without permissions 1
class="Label propColorOrange "
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="New Select"
readonly=""
spellcheck="true"
@ -1076,7 +1076,7 @@ exports[`src/component/kanban/kanban should match snapshot without permissions 1
class="Label propColorBlue "
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="New Select"
readonly=""
spellcheck="true"

View file

@ -11,7 +11,7 @@ exports[`src/components/kanban/kanbanColumnHeader return kanbanColumnHeader and
class="Label propColorDefault "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Title"
@ -336,7 +336,7 @@ exports[`src/components/kanban/kanbanColumnHeader return kanbanColumnHeader and
class="Label propColorDefault "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="New Title"
@ -396,7 +396,7 @@ exports[`src/components/kanban/kanbanColumnHeader should match snapshot 1`] = `
class="Label propColorDefault "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="Title"
@ -456,7 +456,7 @@ exports[`src/components/kanban/kanbanColumnHeader should match snapshot readonly
class="Label propColorDefault "
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="New Select"
readonly=""
spellcheck="true"

View file

@ -154,7 +154,7 @@ exports[`components/table/Table extended should match snapshot with CreatedBy 1`
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -242,7 +242,7 @@ exports[`components/table/Table extended should match snapshot with CreatedBy 1`
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -542,7 +542,7 @@ exports[`components/table/Table extended should match snapshot with CreatedBy 2`
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -634,7 +634,7 @@ exports[`components/table/Table extended should match snapshot with CreatedBy 2`
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -938,7 +938,7 @@ exports[`components/table/Table extended should match snapshot with UpdatedAt 1`
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -1026,7 +1026,7 @@ exports[`components/table/Table extended should match snapshot with UpdatedAt 1`
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -1326,7 +1326,7 @@ exports[`components/table/Table extended should match snapshot with UpdatedBy 1`
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -1414,7 +1414,7 @@ exports[`components/table/Table extended should match snapshot with UpdatedBy 1`
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -1690,7 +1690,7 @@ exports[`components/table/Table should match snapshot 1`] = `
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -2164,7 +2164,7 @@ exports[`components/table/Table should match snapshot without permissions 1`] =
i
</div>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled"
readonly=""
spellcheck="true"
@ -2399,7 +2399,7 @@ exports[`components/table/Table should match snapshot, read-only 1`] = `
i
</div>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled"
readonly=""
spellcheck="true"

View file

@ -29,7 +29,7 @@ exports[`should match snapshot on read only 1`] = `
class="Label propColorBrown "
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="New Select"
readonly=""
spellcheck="true"
@ -79,7 +79,7 @@ exports[`should match snapshot with Group 1`] = `
class="Label propColorBrown "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="value 1"
@ -150,7 +150,7 @@ exports[`should match snapshot, add new 1`] = `
class="Label propColorBrown "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="value 1"
@ -221,7 +221,7 @@ exports[`should match snapshot, edit title 1`] = `
class="Label propColorBrown "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="value 1"
@ -292,7 +292,7 @@ exports[`should match snapshot, hide group 1`] = `
class="Label propColorBrown "
>
<input
class="Editable undefined"
class="Editable "
placeholder="New Select"
spellcheck="true"
title="value 1"

View file

@ -21,7 +21,7 @@ exports[`components/table/TableRow should match snapshot 1`] = `
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -66,7 +66,7 @@ exports[`components/table/TableRow should match snapshot, collapsed tree 1`] = `
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -111,7 +111,7 @@ exports[`components/table/TableRow should match snapshot, display properties 1`]
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -194,7 +194,7 @@ exports[`components/table/TableRow should match snapshot, isSelected 1`] = `
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"
@ -239,7 +239,7 @@ exports[`components/table/TableRow should match snapshot, read-only 1`] = `
i
</div>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled"
readonly=""
spellcheck="true"
@ -285,7 +285,7 @@ exports[`components/table/TableRow should match snapshot, resizing column 1`] =
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"

View file

@ -21,7 +21,7 @@ exports[`components/table/TableRows should match snapshot, fire events 1`] = `
i
</div>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled"
spellcheck="true"
title="title"

View file

@ -9,7 +9,7 @@ exports[`components/viewHeader/viewHeader return viewHeader 1`] = `
class="viewSelector"
>
<input
class="Editable undefined"
class="Editable "
placeholder="Untitled View"
spellcheck="true"
title="view title"
@ -155,7 +155,7 @@ exports[`components/viewHeader/viewHeader return viewHeader readonly 1`] = `
class="viewSelector"
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled View"
readonly=""
spellcheck="true"
@ -203,7 +203,7 @@ exports[`components/viewHeader/viewHeader return viewHeader without permissions
class="viewSelector"
>
<input
class="Editable readonly undefined"
class="Editable readonly "
placeholder="Untitled View"
readonly=""
spellcheck="true"

View file

@ -3,7 +3,7 @@
exports[`components/viewHeader/ViewHeaderSearch return input after click on search button 1`] = `
<div>
<input
class="Editable undefined"
class="Editable "
placeholder="Search text"
value=""
/>
@ -26,7 +26,7 @@ exports[`components/viewHeader/ViewHeaderSearch return search menu 1`] = `
exports[`components/viewHeader/ViewHeaderSearch search text after input after click on search button and search text 1`] = `
<div>
<input
class="Editable undefined"
class="Editable "
placeholder="Search text"
title="Hello"
value="Hello"

View file

@ -87,7 +87,7 @@ export function useEditable(
error = !props.validator(value || '')
}
return {
className: 'Editable ' + (error ? 'error ' : '') + (readonly ? 'readonly ' : '') + className,
className: 'Editable ' + (error ? 'error ' : '') + (readonly ? 'readonly ' : '') + (className? className : ''),
placeholder: placeholderText,
onChange: (e: React.ChangeEvent<ElementType>) => {
onChange(e.target.value)