mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-24 01:04:39 +01:00
fix (form): form builder autocompletion error
This commit is contained in:
parent
d581e8b4ca
commit
682e31ef50
1 changed files with 2 additions and 2 deletions
|
|
@ -2,7 +2,7 @@ import React from "react";
|
|||
import PropTypes from "prop-types";
|
||||
|
||||
import { Input, Textarea, Select, Enabler } from "./";
|
||||
import { FormObjToJSON, format, autoComplete, notify } from "../helpers/";
|
||||
import { FormObjToJSON, format, autocomplete, notify } from "../helpers/";
|
||||
import { t } from "../locales/";
|
||||
|
||||
import "./formbuilder.scss";
|
||||
|
|
@ -131,7 +131,7 @@ const FormElement = (props) => {
|
|||
const filtered = function(multi, datalist, currentValue){
|
||||
if(multi !== true || currentValue == null) return datalist;
|
||||
|
||||
return autoComplete(
|
||||
return autocomplete(
|
||||
currentValue
|
||||
.split(",")
|
||||
.map((t) => t.trim())
|
||||
|
|
|
|||
Loading…
Reference in a new issue