Skip to content

Commit cddbd93

Browse files
author
Luka Skukan
committed
Add note about minification
1 parent 2992541 commit cddbd93

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,8 @@ Customize the form by providing your own markup.
245245
```
246246

247247
**Important:** To use a custom field component the name of the component must contain one of these three words: `text`, `input` or `field`.
248-
Alternatively, the component can have arbitrary name if it has the `spInputLike` (or `data-spInputLike`) property set.
248+
Alternatively, the component can have arbitrary name if it has the `spInputLike` (or `data-spInputLike`) property set. If you minify your code,
249+
prefer using this property to relying on the component name, as the latter may be mangled by the minifier.
249250
The component must also support the properties `name` and `onChange`. The property `name` should represent the name of the field, and the
250251
`onChange` property a handler for the field's `onChange` event.
251252

0 commit comments

Comments
 (0)