Skip to content

Commit

Permalink
Re-adding findComponents.
Browse files Browse the repository at this point in the history
  • Loading branch information
travist committed Apr 23, 2024
1 parent 7de4a8c commit b0b7763
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/utils/formUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,19 @@ const {
getEmptyValue,
isComponentDataEmpty
} = Utils;

/**
* Deprecated version of findComponents. Renamed to searchComponents.
*
* @param components
* @param query
* @returns {*}
*/
export function findComponents(components, query) {
console.warn('formio.js/utils findComponents is deprecated. Use searchComponents instead.');
return searchComponents(components, query);
}

export {
flattenComponents,
guid,
Expand Down Expand Up @@ -75,5 +88,6 @@ export {
applyFormChanges,
findComponent,
getEmptyValue,
isComponentDataEmpty
isComponentDataEmpty,
findComponents
};

0 comments on commit b0b7763

Please sign in to comment.