Custom Context Menu / Custom Right Click Menu in React and NextJS Tutorial

Поделиться
HTML-код
  • Опубликовано: 7 ноя 2024

Комментарии • 18

  • @Dante37rus
    @Dante37rus Год назад +2

    At the end, you forgot to remove onClick on div element. Because of that, your element will close if you click on it. Anyway, thanks about this video. It's been realy helpful

    • @rokov_babca6946
      @rokov_babca6946 Год назад

      It's true, to avoid propagate.
      Thanks a lot Josh! pageX and pageY helps a lot. I have to confess i solved it with css (horrible)

  • @carefree_ladka
    @carefree_ladka Год назад +1

    Great video but I'd like to suggest you that when you pass a ref to child or custom hook, make use of forwardRef

    • @KL4NNNN
      @KL4NNNN Год назад

      I never used forwardRef and still haven't check it's purpose. Could you explain why should use it to pass a ref to a child?

  • @aseeruzzaman9171
    @aseeruzzaman9171 8 месяцев назад

    instead of position: absolute, it's better to use fixed because the pageX and pageY are relative to the entire page. it will not interfere with the parent elements with position: relative.

  • @johnconnor9787
    @johnconnor9787 Год назад

    Great job!!! Thank you for useful information👍👍👍

  • @MohitAtray
    @MohitAtray Год назад

    Thank you for this helpful tutorial! I also want context menu to open upward and not downward if there is no space for menu at the bottom. Similarly I want menu to open leftward if there is no space for menu on the right. How to do this?

  • @alijabbari1509
    @alijabbari1509 Год назад

    Such a nice clean video, ty

  • @ПавелМ-к8в
    @ПавелМ-к8в Год назад

    Very good!!! Good luck!

  • @sleeping_dragon
    @sleeping_dragon Год назад

    great stuff

  • @belkocik
    @belkocik 2 года назад

    very helpful videos! keep it up! :)

  • @tekne9947
    @tekne9947 Год назад

    How did you build the markdown editor is this a library?

  • @zakariya6829
    @zakariya6829 Год назад

    Hi Josh, Does this work with nested menus?

    • @joshtriedcoding
      @joshtriedcoding  Год назад

      not sure what you mean by that. But if you figure this doesn't work, there's always the option to handle the right click with an eventListener which will always work

  • @michaelchizhevskiy6109
    @michaelchizhevskiy6109 Год назад

    Many Thanks

  • @-uca--qe7ql
    @-uca--qe7ql 2 года назад

    hey can you share your pc setup?