formatic
Advanced tools
Comparing version 1.1.7 to 1.1.8
@@ -321,6 +321,12 @@ 'use strict'; | ||
'div', | ||
{ className: 'pretty-text-click-wrapper', onClick: this.onFocusClick }, | ||
{ className: 'pretty-text-click-wrapper', | ||
tabIndex: '0' | ||
// we need to handle onFocus events for this div for accessibility | ||
// when the screen reader enters the field it should be the equivalent | ||
// of a focus click event | ||
, onFocus: this.onFocusClick, | ||
role: 'textbox' }, | ||
_react2.default.createElement( | ||
'div', | ||
{ className: textBoxClasses, tabIndex: this.wrapperTabIndex(), onFocus: this.onFocusWrap, onBlur: this.onBlur }, | ||
{ className: textBoxClasses, tabIndex: this.wrapperTabIndex(), onBlur: this.onBlur }, | ||
_react2.default.createElement('div', { ref: (0, _utils.ref)(this, 'textBox'), className: 'internal-text-wrapper' }) | ||
@@ -531,3 +537,2 @@ ) | ||
} | ||
if (!this.props.readOnly) { | ||
@@ -534,0 +539,0 @@ if (!this.state.codeMirrorMode) { |
{ | ||
"name": "formatic", | ||
"version": "1.1.7", | ||
"version": "1.1.8", | ||
"description": "Automatic, pluggable form generation", | ||
@@ -5,0 +5,0 @@ "main": "./build/lib/index.js", |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
426456
12052