Pierrad
Pierrad
RRefine
Created by conscious-sapphire on 1/25/2024 in #ask-any-question
How does one supported nested resource
@i.stoica Hi, I'm having the same problem, did you manage to find a solution?
9 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
Thanks for your help
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
Okay I manage to get it work with your recommandations ($wire.set & using only reactive()), here's the gist if someone needs it one day : https://gist.github.com/Pierrad/298ea2056714dfc0c55759406406d9b9
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
Okay, I'll fix that, thanks
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
I'll check that, thanks
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
It breaks but only when I save the form, not when I update the field.
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
Any help?
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
Also I tried with a simple Text field to update another field using $set() with the simple name "address" for example and it's working, so I don't understand why my custom field does not seem to be able to update other field using their names.
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
But even if I set my field using "location.address", "location.city"... it's not working.
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
It seems to be from this function :
function isTextElement(element) {
const tagName = element.tagName.toLowerCase();
if (tagName === 'textarea') {
return true;
}
if (tagName !== 'input') {
return false;
}
const type = element.getAttribute('type');
if (type) {
// if any of these input types is not supported by a browser, it will behave as input type text.
const inputTypes = ['text', 'password', 'number', 'email', 'tel', 'url', 'search', 'date', 'datetime', 'datetime-local', 'time', 'month', 'week'];
return inputTypes.contains(type.toLowerCase());
}
return false;
}
function isTextElement(element) {
const tagName = element.tagName.toLowerCase();
if (tagName === 'textarea') {
return true;
}
if (tagName !== 'input') {
return false;
}
const type = element.getAttribute('type');
if (type) {
// if any of these input types is not supported by a browser, it will behave as input type text.
const inputTypes = ['text', 'password', 'number', 'email', 'tel', 'url', 'search', 'date', 'datetime', 'datetime-local', 'time', 'month', 'week'];
return inputTypes.contains(type.toLowerCase());
}
return false;
}
18 replies
FFilament
Created by Pierrad on 10/7/2023 in #❓┊help
Address autocomplete custom field does not update relationship
When I'm typing into the field, I'm getting this error in the console :
Uncaught TypeError: inputTypes.contains is not a function
at isTextElement (<anonymous>:14:31)
at <anonymous>:31:26
at <anonymous>:66:3
Uncaught TypeError: inputTypes.contains is not a function
at isTextElement (<anonymous>:14:31)
at <anonymous>:31:26
at <anonymous>:66:3
18 replies