Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-float-anchor

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-float-anchor - npm Package Versions

234

3.4.1

Diff

Changelog

Source

3.4.1 (2023-09-29)

  • Upgraded to contain-by-screen 2.1.0 to fix issues with large menus not being fit on screen.
macil
published 3.4.0 •

Changelog

Source

3.4.0 (2019-10-22)

  • Added support for passing an HTMLElement as the anchor prop.
macil
published 3.3.0 •

Changelog

Source

3.3.0 (2019-10-22)

  • The choice return value from contain-by-screen is now available if you pass a callback as the float prop.
macil
published 3.2.0 •

Changelog

Source

3.2.0 (2019-10-15)

  • Added the parentElement prop.
macil
published 3.1.0 •

Changelog

Source

3.1.0 (2019-03-28)

  • Added the repositionAsync() method to FloatAnchor. This method should generally be used instead of reposition() because it allows multiple queued repositions to be coalesced together.
  • Fixed multiple O(n^2) issues with nested FloatAnchors that caused them to be repositioned redundantly when the outer FloatAnchors were repositioned.
  • Fixed autoFocus prop not working on input elements and similar components inside of a floated element. The float element container div is now added to the page body before any of the float elements' componentDidMount methods are called.
macil
published 3.0.0 •

Changelog

Source

3.0.0 (2018-10-30)

Breaking Changes

  • React v16.6.0+ is now required.
  • The anchor prop must be a function of anchorRef => React node now.

FloatAnchor v2:

<FloatAnchor
  anchor={
    <div>a</div>
  }
/>

FloatAnchor v3:

<FloatAnchor
  anchor={anchorRef =>
    <div ref={anchorRef}>a</div>
  }
/>

Improvements

  • Removed all usages of the deprecated method React.findDOMNode.
  • No longer uses the legacy Context API.
  • Both anchor and float props may now use any React node rather than only a React element. (You can pass a string now.)
macil
published 2.2.1 •

Changelog

Source

2.2.1 (2018-10-29)

  • Fixed compatibility with Flow v0.84.
agentme
published 2.2.0 •

Changelog

Source

2.2.0 (2018-09-24)

  • Added TypeScript type definitions.
  • Removed use of deprecated React method componentWillReceiveProps.
agentme
published 1.5.1 •

Changelog

Source

1.5.1 (2018-08-31)

  • Fixed compatibility with Flow v0.80.
agentme
published 2.1.0 •

Changelog

Source

2.1.0 (2018-02-02)

  • Added floatContainerClassName prop #3
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc