0
我顯示MDC snack-bar像下面一樣。我已經分配給null
actionText
:未被捕獲的錯誤:請提供操作文本與處理程序
if(isAnyInputEmpty){
sb.show({
message:'Please don\'t leave '+emptyInput+' empty'
,actionOnBottom:false
,multiline:false
,timeout:2750
,actionText:null // actionText:'' => won't work too
,actionHandler:()=>{console.log('snackbar')}
})
}
但我收到此錯誤:
root.min.js:11 Uncaught Error: Please provide action text with the handler.
怎麼可能不提供針對MDC小吃吧的actionText?我打算把它留空。