Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Fixed #76 bug where id is repeating #79

Merged
merged 1 commit into from
Jul 16, 2018

Conversation

gavargas22
Copy link
Contributor

No description provided.

@AMBudnik
Copy link

I think that as soon as our React developer is back from the vacation we'd be able to pull the changes.

Copy link
Member

@jansiegel jansiegel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll merge this as is, and apply the change described in this comment myself.

@@ -67,7 +67,7 @@ export class HotTable extends React.Component {
* @returns {XML}
*/
render() {
this.id = this.props.id || 'hot' + new Date().getTime();
this.id = this.props.id || 'hot' + Math.random().toString(36).substring(7);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gavargas22 This seems like a good idea! Although, as in this case the random string would no longer be a number, it may produce ids like hotoykbhc, which makes the "hot" part less visible.

Do you think you could add a hyphen after "hot"? hot-oykbhc seems more readable to me than hotoykbhc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, I think you are right!

@jansiegel jansiegel merged commit a02510b into handsontable:develop Jul 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants