vue-at icon indicating copy to clipboard operation
vue-at copied to clipboard

is it possible to make the members search look in first letters instead of in the hole word?

Open romangutkin opened this issue 7 years ago • 10 comments

romangutkin avatar Sep 05 '17 13:09 romangutkin

@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

fritx avatar Sep 06 '17 00:09 fritx

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 [email protected] 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 https://github.com/fritx/vue-at/issues/20#issuecomment-327343670, or mute the thread https://github.com/notifications/unsubscribe-auth/AbvorSt6kNBWU1DiEMj9eiOfBL2CB0euks5sfe28gaJpZM4PM9ru .

-- בברכה,

רומן גוטקין נייד: 0549732336

romangutkin avatar Sep 06 '17 07:09 romangutkin

oh yes and no... i had implemented a prop called hideOnBlur in a personal version of 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>

fritx avatar Sep 06 '17 08:09 fritx

that worked perfectly! thank you very much!

On Wed, Sep 6, 2017 at 11:46 AM, Fritz Lin [email protected] 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):

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fritx/vue-at/issues/20#issuecomment-327417664, or mute the thread https://github.com/notifications/unsubscribe-auth/AbvorWQYgTW36sGYIuwtOnefULtyfnUlks5sflvJgaJpZM4PM9ru .

-- בברכה,

רומן גוטקין נייד: 0549732336

romangutkin avatar Sep 06 '17 09:09 romangutkin

that's unbelievable! 😆

fritx avatar Sep 06 '17 11:09 fritx

@Brimstedt

18736200656 avatar Aug 24 '18 06:08 18736200656

@romangutkin

18736200656 avatar Aug 24 '18 06:08 18736200656

@Brimstedt @fritx

18736200656 avatar Aug 24 '18 06:08 18736200656

@18736200656 lol..

fritx avatar Aug 25 '18 12:08 fritx

Can only display the content after selection, not @

zhengweipx avatar Jan 20 '21 03:01 zhengweipx