Skip to content

Commit

Permalink
Fixed htmlIdGenerator import in button_group_button (#4682)
Browse files Browse the repository at this point in the history
  • Loading branch information
gebeto authored Apr 2, 2021
1 parent f7e07ac commit 0b0e294
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## [`master`](https://github.com/elastic/eui/tree/master)

No public interface changes since `32.0.1`.
**Bug fixes**

- Fixed `htmlIdGenerator` import path in `button_group_button.tsx` ([#4682](https://github.com/elastic/eui/pull/4682))

## [`32.0.1`](https://github.com/elastic/eui/tree/v32.0.1)

Expand Down
2 changes: 1 addition & 1 deletion src/components/button/button_group/button_group_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import React, { FunctionComponent, useRef } from 'react';
import { EuiButtonDisplay } from '../button';
import { EuiButtonGroupOptionProps, EuiButtonGroupProps } from './button_group';
import { useInnerText } from '../../inner_text';
import { htmlIdGenerator } from '../../../../src/services';
import { htmlIdGenerator } from '../../../services';

type Props = EuiButtonGroupOptionProps & {
/**
Expand Down

1 comment on commit 0b0e294

@alexkharech
Copy link

@alexkharech alexkharech commented on 0b0e294 Apr 3, 2021

Choose a reason for hiding this comment

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

make a release please

temp postinstall script fix

const fs = require('fs')
const path = require('path')
const file = path.join(
  __dirname,
  '../node_modules/@elastic/eui/es/components/button/button_group/button_group_button.js'
)

fs.readFile(file, 'utf8', function (err, data) {
  if (err) return console.log(err)

  const result = data.replace(
    "import { htmlIdGenerator } from '../../../../src/services';",
    "import { htmlIdGenerator } from '../../../services';"
  )
  fs.writeFile(file, result, 'utf8', function (err) {
    if (err) return console.log(err)
  })
})

Please sign in to comment.