@codeleap/web 3.12.19 → 3.12.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/web",
3
- "version": "3.12.19",
3
+ "version": "3.12.21",
4
4
  "main": "src/index.ts",
5
5
  "repository": {
6
6
  "url": "https://github.com/codeleap-uk/internal-libs-monorepo.git",
@@ -335,11 +335,9 @@ export const Modal = (props) => {
335
335
  if (visible) {
336
336
  document.body.style.overflowY = 'hidden'
337
337
  document.body.style.overflowX = 'hidden'
338
- document.body.style.maxHeight = '100svh'
339
338
  } else {
340
339
  document.body.style.overflowY = 'visible'
341
340
  document.body.style.overflowX = 'hidden'
342
- document.body.style.maxHeight = 'unset'
343
341
  }
344
342
  }, [visible])
345
343
 
@@ -377,7 +377,7 @@ export const Select = forwardRef<HTMLInputElement, SelectProps>(
377
377
 
378
378
  const MenuComponent = React.useCallback((props) => {
379
379
  return <CustomMenu {...props} Footer={FooterComponent} />
380
- }, [])
380
+ }, [FooterComponent])
381
381
 
382
382
  const MenuListComponent = React.useCallback((props) => {
383
383
  return <CustomMenuList {...props} defaultStyles={menuWrapperStyles} />
@@ -409,6 +409,7 @@ export const Select = forwardRef<HTMLInputElement, SelectProps>(
409
409
  hideSelectedOptions={false}
410
410
  tabSelectsValue={false}
411
411
  tabIndex={0}
412
+ backspaceRemovesValue={true}
412
413
  {...otherProps}
413
414
  {..._props}
414
415
  onKeyDown={isFocused ? handleKeyDown : null}