-
Notifications
You must be signed in to change notification settings - Fork 145
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto complete not working in third row #105
Comments
The only thing i can come up with is that apple is already selected from the list... Never used this field before but i was looking for exactly this. |
even if we have 10 options when we arrive to third row ,autocomplete
suggestion is still not working .
…On Sun, Apr 5, 2020, 8:10 PM Patrick Groot ***@***.***> wrote:
The only thing i can come up with is that apple is already selected from
the list...
Never used this field before but i was looking for exactly this.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHP2L2UBEHNDQOCMGPVVVLTRLCQ6ZANCNFSM4MAUMUHQ>
.
|
when I check html code in inspect element , althought the first and second
inputs have event and work correctly,the third row(input) does not have any
event to show autocomplete suggestion after changing input , .
…On Sun, Apr 5, 2020, 8:19 PM Iman Heydari ***@***.***> wrote:
even if we have 10 options when we arrive to third row ,autocomplete
suggestion is still not working .
On Sun, Apr 5, 2020, 8:10 PM Patrick Groot ***@***.***>
wrote:
> The only thing i can come up with is that apple is already selected from
> the list...
>
> Never used this field before but i was looking for exactly this.
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#105 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AHP2L2UBEHNDQOCMGPVVVLTRLCQ6ZANCNFSM4MAUMUHQ>
> .
>
|
@johnsonpaul1014 I think this is your autocomplete plugin originally. Do you have any thoughts or insights on what's going on? @iranimij Are you seeing this with classic editor, gutenberg editor, or both? |
There is a similar problem in theme option page , there isnt any diffrence
between the type of editors
…On Mon, Apr 6, 2020, 6:47 PM Michael Beckwith ***@***.***> wrote:
@johnsonpaul1014 <https://github.com/johnsonpaul1014> I think this is
your autocomplete plugin originally. Do you have any thoughts or insights
on what's going on?
@iranimij <https://github.com/iranimij> Are you seeing this with classic
editor, gutenberg editor, or both?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#105 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AHP2L2RV2V6E2ZY7EPXSI5DRLHP7ZANCNFSM4MAUMUHQ>
.
|
I don't have any new insights on this one, sorry. |
Ok, thanks for answering. I keep searching and I could see that there is no problem when the field is not repeatable and inside a repeatable group. The repeatable field doesn't have ajax reloading, and so the javascript event is not attached to the added field. I can see what is the problem but I don't have the necesary knowledge in javascript to solve it. Maybe with @iranimij or @johnsonpaul1014 we can solve it ? |
I was able to get it working by modifying the script portion of the autocomplete_cmb2_render_autocomplete() function. Basically, all of the js code after |
Hi @pixelwatt. |
I set up an autocomplete field type using the following example:
https://github.com/WebDevStudios/CMB2-Snippet-Library/blob/master/custom-field-types/autocomplete-field-type.php
First when I click on the first row autocomplete is working successfully but at third row autocomplete is not working.
wordpress version : 5.4
my code :
`
The text was updated successfully, but these errors were encountered: