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

rc-form

Package Overview
Dependencies
Maintainers
1
Versions
94
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-form - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

19

lib/createDOMForm.js

@@ -81,13 +81,22 @@ 'use strict';

if (error) {
var firstNode = undefined;
var firstTop = undefined;
for (var name in error) {
if (error.hasOwnProperty(name) && error[name].instance) {
var node = _reactDom2.default.findDOMNode(error[name].instance);
var c = options.container || getScrollableContainer(node);
(0, _domScrollIntoView2.default)(node, c, {
onlyScrollIfNeeded: true
});
break;
var top = node.getBoundingClientRect().top;
if (firstTop === undefined || firstTop > top) {
firstTop = top;
firstNode = node;
}
}
}
if (firstNode) {
var c = options.container || getScrollableContainer(firstNode);
(0, _domScrollIntoView2.default)(firstNode, c, {
onlyScrollIfNeeded: true
});
}
}
if (typeof callback === 'function') {

@@ -94,0 +103,0 @@ callback(error, values);

{
"name": "rc-form",
"version": "0.14.0",
"version": "0.14.1",
"description": "React High Order Form Component",

@@ -5,0 +5,0 @@ "keywords": [

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