Vue playground

Nova v3.37.0

Preview

Vue

nv-fieldselect migration

Moving from message and validation to description and errorDescription.

← nv-fieldselect

Migration Guide for nv-fieldselect

In the latest version of the nv-fieldselect component, we've made several important changes to the properties to improve usability and consistency. Below is a guide to help you update your existing components from version 2 to version 3.

Deprecations

1. prop message -> description

The message property has been deprecated in favor of description. This change aligns the property name more closely with its function, which is to provide additional context or information about the input field.

Old Usage:

html<nv-fieldselect message="Description of the input field"></nv-fieldselect>

New Usage:

html<nv-fieldselect description="Description of the input field"></nv-fieldselect>

2. prop validation -> errorDescription

The validation property has been deprecated in favor of errorDescription. This change clarifies that this property is used to describe an error related to the input field.

Old Usage:

html<nv-fieldselect validation="Error occurred"></nv-fieldselect>

New Usage:

html<nv-fieldselect error error-description="Error occurred"></nv-fieldselect>

Breaking Changes

1. prop placeholder -> removed

The property placeholder is been removed from the nv-fieldselect component. To be more consistent with the native <select> element, the placeholder is now set on the <option> elements.