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

@mezzanine-ui/react-hook-form

Package Overview
Dependencies
Maintainers
3
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mezzanine-ui/react-hook-form - npm Package Compare versions

Comparing version 0.16.4 to 0.16.5

2

package.json
{
"name": "@mezzanine-ui/react-hook-form",
"version": "0.16.4",
"version": "0.16.5",
"description": "Form with data binding HOC for mezzanine-ui",

@@ -5,0 +5,0 @@ "author": "mezzanine",

@@ -9,3 +9,3 @@ import { jsx, jsxs } from 'react/jsx-runtime';

function SelectField(props) {
const { className, clearable = false, defaultValue, disabled, fullWidth, width, inputMode, itemScope = false, label, mode, itemsInView, optionGroups, options, placeholder = '請選擇', popperOptions, registerName, remark, renderValue, required, role, size, style, errorMsgRender, onChange: onChangeProp, disabledErrMsg, ...restProps } = props || {};
const { className, clearable = false, defaultValue, disabled, fullWidth, width, inputMode, itemScope = false, label, mode, itemsInView, optionGroups, options, placeholder = '請選擇', popperOptions, registerName, remark, renderValue, required, role, size, style, errorMsgRender, onChange: onChangeProp, onClear: onClearProp, disabledErrMsg, ...restProps } = props || {};
const { clearErrors, formState: { errors }, control, resetField, setValue, } = useFormContext();

@@ -17,5 +17,6 @@ const watchValue = useWatch({

}) || defaultValue;
const onClear = () => {
const onClear = (e) => {
resetField(registerName);
setValue(registerName, undefined, { shouldValidate: true });
onClearProp === null || onClearProp === void 0 ? void 0 : onClearProp(e);
};

@@ -22,0 +23,0 @@ const onChange = (newValue) => {

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