fixing dropdown label
This commit is contained in:
parent
21b7ea49f2
commit
571ad3dcd1
|
|
@ -165,10 +165,14 @@ export const TypeDropdown: FC<{
|
|||
if (value === null) {
|
||||
fm.data[field.name] = undefined;
|
||||
}
|
||||
const typeahead_val = (Array.isArray(value) ? value : [value]).filter(
|
||||
(e) => e
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
<Typeahead
|
||||
value={Array.isArray(value) ? value : [value]}
|
||||
value={typeahead_val}
|
||||
popupClassName={popupClassName}
|
||||
onSelect={({ search, item }) => {
|
||||
if (item) {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,9 @@ const w = window as any;
|
|||
|
||||
export const overrideNav = (arg?: { local?: any }) => {
|
||||
if ((!w.prasi_menu && !isEditor) || arg?.local) {
|
||||
if (!w.prasi_menu) {
|
||||
w.prasi_menu = { nav_override: true, nav: w.navigate, pm: null };
|
||||
}
|
||||
w.navigate = (async (_href, params) => {
|
||||
if (!_href) {
|
||||
console.error("Failed to navigate, empty url");
|
||||
|
|
|
|||
Loading…
Reference in New Issue