Giter Club home page Giter Club logo

react-easy-edit's Introduction

Hi there πŸ‘‹

visitor badge

  • πŸ“ Originaly from πŸ‡¨πŸ‡Ύ, now living in the UK
  • πŸ’Ό Engineering Manager at M&S
  • πŸŽ“ MSc and BSc in Computer Science
  • πŸ”­ Currently working on multiple things, some of them listed below!

Open source projects

πŸ—‚οΈ Projects ⭐ Stars πŸ“š Forks πŸ›Ž Issues πŸ“¬ Pull requests
React EasyEdit component Stars Forks Issues Pull Requests
Java String Utils Stars Forks Issues Pull Requests
Javascript type checking Stars Forks Issues Pull Requests

My Games and Apps

πŸ—‚οΈ Project πŸ“‘ Platform ⬇️ Download
πŸ•ΉοΈ Scaly Snake Windows, Linux Itch.io
πŸ“± PalWorld Companion Android Play Store
πŸ“± Cypriot Dictionary Android Play Store
πŸ“± Memory Match Android Play Store

react-easy-edit's People

Contributors

aksbad007 avatar b97822302002 avatar giorgosart avatar glcheetham avatar greenkeeper[bot] avatar kareemmahlees avatar liamwithers avatar mnnalxndr avatar mrrenaud avatar nohafahmi avatar nschroeter avatar pavelee avatar squiaios avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-easy-edit's Issues

Allow user to display instructions underneath the component

Describe the solution you'd like
I would like to be able to pass in free text in a prop called "instructions" that will be displayed underneath the component to provide information to the end user on how to fill in the value for the rendered component

Add new prop viewAttributes

Add a new prop called viewAttributes that will allow users to pass in view related attributes, similarly to how the attributes prop works for the edit component

tempValue doesn't update on component update

Describe the bug
When used within a component with pagination (e.g. react-table), paginating to a different page updates the value but not the tempValue. This means the new value displays in view mode, but in edit mode it displays the value in the same position on the previous page.

To Reproduce
Steps to reproduce the behavior:
Create a react-table with an EasyEdit element on every row
Ensure that you have more rows in your data than the pagination row size
Paginate to page 2
Verify the expected value is displayed
Enter edit mode
Verify the incorrect value is displayed

Expected behavior
When entering edit mode, I expect that the value displayed in view mode is what I'm editing

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Chrome
  • Version: Latest

Out side click to save the details

Outside Click

Is there any way to save the details without clicking the save button or Pressing ENTER.

It is go to name a prop like autoSave , so that user can save the details instantly.

Placeholder for custom displayComponents

Describe the bug
When passing in a displayComponent, if the value of the component is null then there is no placeholder available for that component.

To Reproduce

<EasyEdit
    type="text"
    onSave={App.onTest}
    name="custom-one"
    editComponent={<CustomInput />}
    instructions="Custom input capitalises text"
/>

Expected behavior
It should show the default library placeholder "Click to edit"

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.14.2 to 1.14.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

Release Notes for v1.14.3

2019-06-06

Bug Fixes

  • Generate correct external imports when importing from a directory that would be above the root of the current working directory (#2902)

Pull Requests

Commits

The new version differs by 4 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Add support for input type "password"

Users should be able to inline edit password fields as this is not currently supported by the library. When in view mode, the password field should not show the password value, instead it should show the bullet characters β€’β€’β€’β€’β€’β€’β€’β€’.

Add a placeholder for <EditSelect /> component

Is your feature request related to a problem? Please describe.
The first option of a select statement is pre-selected when the component is in edit mode

Describe the solution you'd like
Add the ability to pass down a user defined placeholder otherwise use a default component

Add the ability to declare a field as non-editable

Is your feature request related to a problem? Please describe.
There should be a way for the user to specify if a field should be editable or not.

Describe the solution you'd like
A new prop should be introduced called 'allowEdit' that will determine if the field should be editable or not

Custom validation

Describe the solution you'd like
There should be a way for a user to pass in a custom validation function and the error message to be shown to the end user if the function returns false.

Type `email` errors out while in edit mode

Describe the bug
It seems that the an EasyEdit component of type email can be rendered but when you try to inline edit it, it throws an error.

To Reproduce
Steps to reproduce the behavior:

  1. Use the code below
<EasyEdit
  type="email"
  onSave={App.onTest}
/>
  1. Try to edit the component

Expected behavior
Users should be allowed to edit a component of type email

Screenshots
image

Additional context
Add any other context about the problem here.

An in-range update of babel7 is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


There have been updates to the babel7 monorepo:

    • The devDependency @babel/cli was updated from 7.8.3 to 7.8.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.

babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Add prop to hide the "Save" and "Cancel" buttons

You don't always want to show the buttons to save and cancel. There is already an existing behavior to cancel and save via keys.

I would suggest a prop hideButtons with an default value of false.

I am already working on a PR.

The component value is not updateded when the state changes

I am trying to use this component:

<EasyEdit
type="textarea"
onSave={(e)=>{this.handleBuildingSave(e,'info');}}
onValidate={() => true}
value={selectedBuilding.info}
saveButtonLabel={getLocalizedStrings(userLang).SAVE}
cancelButtonLabel={getLocalizedStrings(userLang).CANCEL}
saveButtonStyle={'button'}
cancelButtonStyle={'button'}
attributes={{name: 'buildingInfo',
rows:'5',
cols:'35',
id: 'name-buildingInfo',style:inlineEditStyle}}
/>

{selectedBuilding.info}
// this displays correctly

The selectedBuilding.info are a coming from redux store. When my redux store update this value the value in the EasyEdit component is not updated. If I show the redux store value in a div it shows the correct value.

An in-range update of rollup is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency rollup was updated from 1.32.0 to 1.32.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

Release Notes for v1.32.1

2020-03-06

Bug Fixes

  • Handle default export detection for AMD and IIFE externals that do not have a prototype (#3420)
  • Handle missing whitespace when the else branch of an if-statement is simplified (#3421)
  • Mention the importing module when reporting errors for missing named exports (#3401)
  • Add code to warning for missing output.name of IIFE bundles (#3372)

Pull Requests

  • #3372: Add warning code for missing output.name of IIFE bundle that has export (@rail44)
  • #3401: Missing exports errors now print the importing module (@timiyay)
  • #3418: Structure lifecycle hooks, add links to build time hooks (@lukastaegert)
  • #3420: Update generated code of getInteropBlock() to work with null prototype objects (@jdalton)
  • #3421: Avoid invalid code when "else" branch is simplified (@lukastaegert)
Commits

The new version differs by 8 commits.

  • f458cbf 1.32.1
  • 8cbf216 Update changelog
  • 97b8c40 warn.code for missing output.name of IIFE bundle that has export (#3372)
  • eeda078 Update generated code of getInteropBlock() to work with null prototype objects (#3420)
  • 85c54ee Avoid invalid code when "else" branch is simplified (#3421)
  • 1e6284f Missing exports errors now print the importing module (#3401)
  • baf382a Fix internal documentation links
  • 6f0f62b Structure lifecycle hooks, add links to build time hooks (#3418)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Using fontawesome icons for saveButtonLabel & cancelButtonLabel

Easy edit really made things simple for inline editing text in React components. It would be great if saveButtonLabel & cancelButtonLabels could support FontAwesome icons. I tried it this way:
saveButtonLabel={<FontAwesomeIcon icon={faCheck}/>} cancelButtonLabel={<FontAwesomeIcon icon={faTimes}/>}
While it works, I notice following warnings in browser console logs:
Warning: Failed prop type: Invalid prop 'saveButtonLabel' of type 'object' supplied to 'o', expected 'string'. Warning: Failed prop type: Invalid prop 'cancelButtonLabel' of type 'object' supplied to 'o', expected 'string'.

Would appreciate inputs on how to avoid these warnings.

Thanks,
Harsha

An in-range update of rollup is breaking the build 🚨

The devDependency rollup was updated from 1.27.5 to 1.27.6.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

Release Notes for v1.27.6

2019-11-30

Bug Fixes

  • Use "auto" export mode by default for all modules when preserving modules (#3265)
  • Observe "output.exports" when preserving modules and warn for mixed exports if necessary (#3265)

Pull Requests

Commits

The new version differs by 3 commits.

  • 5a01f05 1.27.6
  • fe0fced Update changelog
  • bdd1e03 Use export mode "auto" by default when preserving modules (#3265)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

The value passed in is not displayed in edit mode

Describe the bug
When a value is passed in as a prop to an component, it's not displayed when the user edits the component and ends up over-writting the initial value to null if the user presses on "Save" button

To Reproduce
Steps to reproduce the behavior:

  1. Use this component definition
    <EasyEdit type="text" value="Test Input Field" onSave={()=>{}} name="name-one" />'
  2. Click on the component to activate the edit mode
  3. See error, the value passed in is not visible to the user

Expected behavior
The value provided to the component should be visible in the edit mode

Screenshots
pgawh5dnec

An in-range update of rollup-plugin-babel is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency rollup-plugin-babel was updated from 4.3.3 to 4.4.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup-plugin-babel is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Improve EasyParagraph resizing

In EasyParagraph.jsx <textarea> should be resize: vertical; only. User shouldn't be able to resize the textarea to make it wider than the container element that contains it.

<textarea> should also fill the available horizontal space. Probably the easy-edit-component-wrapper class would need a width: 100% attribute on it.

An in-range update of react is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


There have been updates to the react monorepo:

    • The devDependency react was updated from 16.13.0 to 16.13.1.
  • The devDependency react-dom was updated from 16.13.0 to 16.13.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the react group definition.

react is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Issue with displaying the value rather the label on radio buttons and dropdown when in `View` mode

Describe the bug
If you pass in a predefined value to an EasyEdit component of type select or radio then, if the value exists as an option, instead of using the label of the option, it just shows the value.

To Reproduce
Steps to reproduce the behavior:

  • Use the component below
<EasyEdit
        type={Types.RADIO}
        value="one"
        onSave={save}
        options={[
            { label: "First option", value: "one" },
            { label: "Second option", value: "two" }
        ])}
      />
  • Observe when the component is not in edit mode, the value displayed to the user is "one" rather than "First option"

Expected behavior
It should show "First option" to the end user

Default value. Is it posible to add a default value ?

I am using a type date field.
If the value is null i want the field to default to todays date.
I tried setting the defaultValue attribute to attributes, but then I get a nasty warning in the console:

Warning: v contains an input of type date with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue

Here is my settings:

<EasyEdit
 	type="date"
 	onSave={(e) => {
 	  this.handleChairSave(e, 'lastServiceDate');
 	}}
 	onValidate={() => true}
 	value={selectedChair.lastServiceDate?selectedChair.lastServiceDate:''}
 	saveButtonLabel={getLocalizedStrings(userLang).SAVE}
 	cancelButtonLabel={getLocalizedStrings(userLang).CANCEL}
 	placeholder={getLocalizedStrings(userLang).CLICK_EDIT}
 	saveButtonStyle={'button'}
 	cancelButtonStyle={'button'}
 	attributes={{
 	  name: 'lastServiceDate',
 	  defaultValue:'2019-04-01',
 	  id: 'lastServiceDate', style: inlineEditStyle
 	}}
/>

Attributes are not being applied to all react-easy-edit components

Describe the bug
Attributes exist as a prop but are not being utilised.

To Reproduce
Steps to reproduce the behavior:

  1. Initialise a react-easy-edit component for which the editing state is false
  2. This results in renderPlaceholder() being called
  3. Any HTML elements created by this method do not utilise the attributes prop

Expected behavior
attributes props should be utilised for all input/div elements that react-easy-edit creates.

Screenshots
Attributes Prop:
image

HTML element:
image

Notice that the name attribute has not been applied.

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser [e.g. chrome, safari]: Chrome
  • Version [e.g. 22]: 76.0.3809.132

Additional context
N/A

Validation message is still shown even if the input is valid

Describe the bug

To Reproduce
Steps to reproduce the behavior:

  1. Add the code below
<EasyEdit
  type={Types.TEXT}
  onSave={App.onTest}
  onValidate={value => {return value !== null && value.length > 0}}
/>
  1. Hover over the component and click on it to put it in edit mode
  2. Without adding any value, click on "Save", you should see a validation message
  3. Add a value in and then click save
  4. Now hover over the component and click on it to put it in edid mode
  5. Observe that the validation message is still visible

Expected behavior
Validation message should be hidden if the input is valid

Change the cursor to not-alloed if the `allowEdit` prop is set to false

Is your feature request related to a problem? Please describe.
When the prop allowEdit is set to false - which means that the component is not editable, it will act as a label - there is no clear indication to the user that they cannot edit the component.

Describe the solution you'd like
It would be good if the cursor changed to not-allowed (🚫) so that the user would know that they cannot edit the component

An in-range update of react-scripts is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency react-scripts was updated from 3.4.0 to 3.4.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

react-scripts is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

Release Notes for v3.4.1

3.4.1 (2020-03-20)

v3.4.1 is a maintenance release that includes minor bug fixes and documentation updates including upgrading Babel to fix a bug in the 7.8 release line. This release also brings support for TypeScript 3.8.

πŸ› Bug Fix

  • react-scripts
  • babel-preset-react-app
  • cra-template, eslint-config-react-app, react-scripts
    • #7790 Widen eslint-config-react-app peer dependency versions (@lukyth)

πŸ’… Enhancement

  • cra-template-typescript, cra-template
  • react-scripts

πŸ“ Documentation

  • Other
    • #8515 Fix proxying API request docs (@hjr3)
    • #8561 Indicate that the file structure is the template's (@Vinnl)
  • react-scripts

πŸ”¨ Underlying Tools

  • babel-preset-react-app, create-react-app, react-dev-utils, react-error-overlay, react-scripts
  • react-scripts

Committers: 9

Migrating from 3.4.0 to 3.4.1

Inside any created project that has not been ejected, run:

npm install --save --save-exact [email protected]

or

yarn add --exact [email protected]
Commits

The new version differs by 13 commits.

  • d2f813f Publish
  • 7641a3c Prepare 3.4.1 release
  • d5b527f Update to Babel 7.9 (#8681)
  • 6adb82a Add React.StrictMode to default templates (#8558)
  • a452ddc Bump dependencies (#8620)
  • 3f699fd Fix proxying API request docs (#8515)
  • 4d26208 Use native ESLint behaviour when extending (#8276)
  • 8ba0ccb Whitelist main in template.json (#8539)
  • 7d3b72c Update template example in docs (#8561)
  • 2030ee1 Fix optional chaining and nullish coalescing support (#8526)
  • 038e6fa Widen eslint-config-react-app peer dependency versions (#7790)
  • 7e6d6cd Closes webpack dev server and exits process on "end" stdin (#7203)
  • af926d5 Bump pnp-webpack-plugin (#8509)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Passing in `class` as an attribute overwrites your other classes

Describe the bug
When passing in the attributes prop, if you pass in an attribute of class: 'some-class' then it will overwrite any other classes that react-easy-edit has decided to add to your component, leaving you only with the value provided in your attribute prop object.

To Reproduce
Steps to reproduce the behavior:

  1. Pass { class: 'some-class' } in to your attributes prop
  2. Notice that this is now the only class included on your rendered EasyEdit component

Expected behavior
Any class names that are passed in as an attribute should be appended to the expected classes, rather than replacing them. How should multiple class names be passed in? As a space separated string, or as an array? My opinion is that some logic should be added that can append an array of class names to the other class names added by react-easy-edit.

Desktop (please complete the following information):

  • OS: All
  • Browser: All
  • Version: 1.3.1

Additional context
Should setCssClasses be renamed & generalised to set classes? Not all additional classes will necessarily be for added for styling reasons. We could alternatively have two methods (general classes & css classes), but I feel that this can be rolled into a single method.

An in-range update of rollup-plugin-postcss is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency rollup-plugin-postcss was updated from 2.2.0 to 2.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup-plugin-postcss is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

Release Notes for v2.3.0

2.3.0 (2020-03-07)

Features

  • allow to pass options to built-in loaders (94d23fa), closes #130
Commits

The new version differs by 5 commits.

  • 94d23fa feat: allow to pass options to built-in loaders
  • 77074b6 Added support for PostCSS to option for some plugins that are relying on it (#163)
  • 1e1022d fix: remove colon from Github URLs (#162)
  • 6f6544c Add augmentChunkHash hook for proper content hashing (#231)
  • 122a092 fix: class named 'default' throws an error when options.namedExports

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Checkbox saved values are not comma separated

Describe the bug
Assume that you have a checkbox list with 2 options, "Option A" and "Option B". If you select both of them and click "Save" then the value shown to the user comes up as "Option AOption B".

Expected behavior
The display value should be "Option A, Option B".

Screenshots
image
image

Desktop (please complete the following information):

  • OS: Windows 10 Enterprise Edition
  • Browser: Chrome v72.0.3626.119

Add support for html input type "range"

Describe the solution you'd like
Users should be able to pass in the html range type, the view component should just display the number selected and the input component should render a range picker.

An in-range update of babel7 is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


There have been updates to the babel7 monorepo:

    • The devDependency @babel/cli was updated from 7.8.3 to 7.8.4.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

This monorepo update includes releases of one or more dependencies which all belong to the babel7 group definition.

babel7 is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

HTML attributes

Describe the solution you'd like
Generalize the way HTML attributes can be passed in as a prop.

Currently the way html attributes are passed in is as specif props like min, max, name etc which is not scalable. It would be great if I could pass in a list of attributes that i would like to pass in my input element.

For example:
props = {name:'name', disabled: true}

Allow users to disable auto submit and auto cancel key listeners

Allow users to disable auto submitting the EasyEdit component when they press the enter key
Allow users to disable auto cancelling the EasyEdit component when they press the escape

In order to achieve this, two new props will be introduced called disableAutoSubmit and disableAutoCancel which will act as flags to disable this feature. Default value for both these will be false

An in-range update of rollup-plugin-postcss is breaking the build 🚨


☝️ Important announcement: Greenkeeper will be saying goodbye πŸ‘‹ and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io


The devDependency rollup-plugin-postcss was updated from 2.4.1 to 2.5.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

rollup-plugin-postcss is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details
  • ❌ ci/circleci: build: Your tests failed on CircleCI (Details).

Release Notes for v2.5.0

2.5.0 (2020-03-17)

Features

Commits

The new version differs by 1 commits.

  • 37bb7a1 feat: add the typescript declaration file (#241)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Allow users save value by hitting "Enter" key

Allow users save value by hitting "Enter" key. Right now I have to click it on the green button to submit my values.

On paragraph type components it should probably allow Shift + Enter to insert new lines.

Hover off not working after editing

After editing a value, if you click on cancel, the item's value remains italic.

Using the provided sandbox you can see it in action:
https://codesandbox.io/s/react-easy-edit-sandbox-2y97j

Digging into the code it seems that after both _onSave and _onCancel function you have to add the following:

 o(d(s), "_onSave", function() {
        var e = s.props,
            t = e.onSave,
            a = e.onValidate,
            n = s.state.tempValue;
        a(n) ? s.setState({
            editing: !1,
            value: n,
            isValid: !0,
            ** hover: !1 **
        }, function() {
            return t(s.state.value)
        }) : s.setState({
            isValid: !1
        })
    }), o(d(s), "_onCancel", function() {
            var e = s.props.onCancel,
                t = s.state.value;
            s.setState({
                editing: !1,
                tempValue: t,
                ** hover: !1 **
            }, function() {
                return e()
            })
        }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.