@mpxjs/webpack-plugin 2.10.4-beta.16 → 2.10.4-beta.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -90,7 +90,7 @@ const Input = forwardRef((props, ref) => {
90
90
  });
91
91
  const { layoutRef, layoutStyle, layoutProps } = useLayout({ props, hasSelfPercent, setWidth, setHeight, nodeRef });
92
92
  useEffect(() => {
93
- if (inputValue !== value) {
93
+ if (value !== tmpValue.current) {
94
94
  const parsed = parseValue(value);
95
95
  tmpValue.current = parsed;
96
96
  setInputValue(parsed);
@@ -216,7 +216,7 @@ const Input = forwardRef<HandlerRef<TextInput, FinalInputProps>, FinalInputProps
216
216
  const { layoutRef, layoutStyle, layoutProps } = useLayout({ props, hasSelfPercent, setWidth, setHeight, nodeRef })
217
217
 
218
218
  useEffect(() => {
219
- if (inputValue !== value) {
219
+ if (value !== tmpValue.current) {
220
220
  const parsed = parseValue(value)
221
221
  tmpValue.current = parsed
222
222
  setInputValue(parsed)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mpxjs/webpack-plugin",
3
- "version": "2.10.4-beta.16",
3
+ "version": "2.10.4-beta.17",
4
4
  "description": "mpx compile core",
5
5
  "keywords": [
6
6
  "mpx"