File Upload with Angular Material

后端 未结 12 1061
抹茶落季
抹茶落季 2021-01-30 15:48

I\'m writing an web app with AngularJS and angular-material. The problem is that there\'s no built-in component for file input in angular-material. (I feel that file uploading d

12条回答
  •  孤独总比滥情好
    2021-01-30 16:31

    Adding to all the answers above (which is why I made it a community wiki), it is probably best to mark any input with tabindex="-1", especially if using readonly instead of disabled (and perhaps the , although it should be hidden, it is still in the document, apparently). Labels did not act correctly when using the tab / enter key combinations, but the button did. So if you are copying one of the other solutions on this page, you may want to make those changes.

提交回复
热议问题