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

@project-r/styleguide

Package Overview
Dependencies
Maintainers
2
Versions
689
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@project-r/styleguide - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

6

lib/components/Form/Field.js

@@ -99,2 +99,5 @@ 'use strict';

};
_this.inputRef = function (ref) {
return _this.input = ref;
};
return _this;

@@ -110,3 +113,2 @@ }

sim = _props.simulate,
ref = _props.ref,
label = _props.label,

@@ -133,3 +135,3 @@ error = _props.error;

containerStyle,
_react2.default.createElement('input', _extends({ type: type, ref: ref,
_react2.default.createElement('input', _extends({ type: type, ref: this.inputRef,
onChange: onChange || function (event) {

@@ -136,0 +138,0 @@ var v = event.target.value;

{
"name": "@project-r/styleguide",
"version": "0.1.5",
"version": "0.1.6",
"peerDependencies": {

@@ -5,0 +5,0 @@ "glamor": "^2.20.24",

@@ -72,5 +72,6 @@ import React, {Component} from 'react'

}
this.inputRef = ref => this.input = ref
}
render () {
const {onChange, type, simulate: sim, ref, label, error} = this.props
const {onChange, type, simulate: sim, label, error} = this.props

@@ -96,3 +97,3 @@ let simulations = {}

<label {...containerStyle}>
<input type={type} ref={ref}
<input type={type} ref={this.inputRef}
onChange={onChange || ((event) => {

@@ -99,0 +100,0 @@ const v = event.target.value

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