-
Notifications
You must be signed in to change notification settings - Fork 114
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
is it possible to make the members search look in first letters instead of in the hole word? #20
Comments
@romangutkin there is a prop called filterMatch in the source code but not documented yet. |
thank you very much! this is very helpful!
i wanted to ask another question.. is there a way to dismiss the suggestion
box by clicking anywere outside of the box?
…On Wed, Sep 6, 2017 at 3:56 AM, Fritz Lin ***@***.***> wrote:
@romangutkin <https://github.com/romangutkin> there is a prop called
filterMatch in the source code but not documented yet.
https://github.com/fritx/vue-at/blob/dev/src/At.vue#L41
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AbvorSt6kNBWU1DiEMj9eiOfBL2CB0euks5sfe28gaJpZM4PM9ru>
.
--
*בברכה,*
*רומן גוטקין*
*נייד:* 0549732336
|
oh yes and no... for now a workaround might look like this (not tested): <at ref="at">
<div class="editor"
@focus="handleFocus"
@blur="handleBlur"></div>
</at>
<script>
export default {
data () {
return {
blurTimer: null,
hideOnBlur: true
}
},
methods: {
handleFocus () {
if (this.hideOnBlur) {
clearTimeout(this.blurTimer)
}
},
handleBlur () {
if (this.hideOnBlur) {
this.blurTimer = setTimeout(()=>{
this.$refs.at.closePanel()
}, 1500)
}
}
}
}
</script> |
that worked perfectly! thank you very much!
…On Wed, Sep 6, 2017 at 11:46 AM, Fritz Lin ***@***.***> wrote:
oh yes and no...
i had implemented a prop called hideOnBlur in a personal version of
react-at <https://github.com/fritx/react-at> which is not yet published.
i'm gonna include this feature in recent releases.
for now a workaround might look like this (not tested):
<at ref="at">
<div class="editor"
@Focus="handleFocus"
@blur="handleBlur"></div></at>
<script>export default {
data () {
return {
blurTimer: null,
hideOnBlur: true
}
},
methods: {
handleFocus () {
if (this.hideOnBlur) {
clearTimeout(this.blurTimer)
}
},
handleBlur () {
if (this.hideOnBlur) {
this.blurTimer = setTimeout(()=>{
this.$refs.at.closePanel()
}, 1500)
}
}
}
}</script>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#20 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AbvorWQYgTW36sGYIuwtOnefULtyfnUlks5sflvJgaJpZM4PM9ru>
.
--
*בברכה,*
*רומן גוטקין*
*נייד:* 0549732336
|
that's unbelievable! 😆 |
@18736200656 lol.. |
Can only display the content after selection, not @ |
No description provided.
The text was updated successfully, but these errors were encountered: