Closed lqt93 closed 3 years ago
setValue is accidentally passed as raw property into native component in Moai Input component. It caused the warning by React:
setValue
I take a look in the code, and recognize that the root cause maybe due to these lines: https://github.com/moaijs/moai/blob/a384b2cd78661e598e69826b658d8dea4e32156f/lib/core/src/input/input.tsx#L126 https://github.com/moaijs/moai/blob/a384b2cd78661e598e69826b658d8dea4e32156f/lib/core/src/input/input.tsx#L131
setValue
is accidentally passed as raw property into native component in Moai Input component. It caused the warning by React:I take a look in the code, and recognize that the root cause maybe due to these lines: https://github.com/moaijs/moai/blob/a384b2cd78661e598e69826b658d8dea4e32156f/lib/core/src/input/input.tsx#L126 https://github.com/moaijs/moai/blob/a384b2cd78661e598e69826b658d8dea4e32156f/lib/core/src/input/input.tsx#L131